redirection using htaccess

---------- for www-------
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
for --- http to https
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443
RewriteCond %{HTTP_HOST} ^(www\.)?jainayurveda\.com$ [NC]
RewriteRule ^(.*)$ "https\:\/\/www\.jainayurveda\.com\/$1" [R=301,L]

Comments

Popular posts from this blog

dynamic create multiple ckeditor onclick event using jquery

get lat and long from city name using jquery

membership registration and login system in php