*/5 * * * * php -q /home/checkin/public_html/staging/webservices/cron-job.php
Wednesday, 13 June 2018
Tuesday, 24 April 2018
deny direct access to a folder and file by htaccess
<Files ~ "^.*">
Deny from all
</Files>
<Files ~ "^index\.php|css|js|.*\.png|.*\.jpg|.*\.gif|.*\.JPG|.*\.jpeg">
Allow from all
</Files>
Deny from all
</Files>
<Files ~ "^index\.php|css|js|.*\.png|.*\.jpg|.*\.gif|.*\.JPG|.*\.jpeg">
Allow from all
</Files>
Friday, 23 February 2018
How to redirect on http to https and www to no www
1.) Redirect http to https :-
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
2.) Redirect wwwto no www :-
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
2.) Redirect wwwto no www :-
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]
Subscribe to:
Posts (Atom)