Additional, just in case it *is* an issue, if you *do* have both http:// and http://www versions of the same url able to resolve, it will be better for SEO to pick only one and globally redirect to that. Allowing the use of both variations can really mess with your analytics and dilute link-juice.
To fix that, you can redirect to www versions like this;
Code:
RewriteCond %{HTTP_HOST} ^mywebsite\.co\.uk [NC]
RewriteRule ^(.*)$ https://www.mywebsite.co.uk/$1 [L,R=301]
or non-www versions like this;
Code:
RewriteCond %{HTTP_HOST} ^www\.mywebsite\.co\.uk$ [NC]
RewriteRule ^(.*)$ https://mywebsite.co.uk/$1 [L,R=301]
Whichever you choose should go before any individual 301 redirects, and immediately after RewriteEngine On
Pick which you prefer but you might need to check exact syntax with your web host - they could have their own recommendations in their FAQs
This method will cut out the need for duplicate individual www or non-www 301 redirect lines (this is a global redirect)
Bookmarks