I've changed my site to be full sll from today.
so I want all pages to direct to https
but I also want all the pages to point to the www version
Just checking the code below in the .htaccess will do what I want and have no issues, ie duplication
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
also anything I may need to do website having done this?
so I want all pages to direct to https
but I also want all the pages to point to the www version
Just checking the code below in the .htaccess will do what I want and have no issues, ie duplication
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]
also anything I may need to do website having done this?
Comment