redirect non-www to www https
-
Hi,
I am trying to redirect a non-www version of my website to https://www.website.com
Currently it is set to https://website.com in my WP-admin
I have tried the following in my htaccess file which works:
RewriteEngine On RewriteCond %{HTTP_HOST} ^www.website.co.uk$ [NC] RewriteRule ^(.*)$ https://www.website.co.uk/$1 [R=301,L] RewriteCond %{HTTPS} !^on$ RewriteRule (.*) https://www.website.co.uk/$1 [R,L]but I get this error when it redirects:
“The page isn’t redirecting properly
An error occurred during a connection to http://www.website.co.uk.
This problem can sometimes be caused by disabling or refusing to accept cookies.”
Can anyone tell me why this would be? Is it because the URL in my wp-admin is not using http://www.?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘redirect non-www to www https’ is closed to new replies.