-
I have a WordPress Elementor site hosted on Azure. Everything works fine going straight to website withouth the wwww. However it fails to redirect going to the www version.
I’ve followed the information in this article https://rankmath.com/kb/url-incorrect-version-redirection/ and I can see that the htaccess is updating correctly however nothing changes.
Is there another way? I’ve tried updating it with both updates to the htaccess, of course replacing with my url.
RewriteEngine On
RewriteCond %{HTTP_HOST} http://www.example.com
RewriteRule (.*) https://example.com/$1 [R=301,L]AND
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.website.com [NC]
RewriteRule ^(.*)$ https://website.com/$1 [L,R=301]
The ticket ‘301 Redirect Not Working’ is closed to new replies.