- Joined
- Mar 9, 2010
- Posts
- 3,402
- Reaction score
- 55
Hi,
I'm currently using this to redirect traffic to https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
Any idea what change I make to have the redirect www. as its non www at the moment, thought I knew it but did not work?
Thanks
I'm currently using this to redirect traffic to https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
Any idea what change I make to have the redirect www. as its non www at the moment, thought I knew it but did not work?
Thanks