Force non-www not working...

Soldato
Joined
27 Dec 2005
Posts
17,310
Location
Bristol
Not sure what's changed as I'm using a pre-existing htaccess file but my domain isn't forcing non-www and Google is basically only seeing the www version. As a result (plus potentially other factors) we've dropped down 10 odd places in our primary keyword search from 1st to 2nd page.

The htaccess is being read as it's picking up other RewriteRules and Redirects, but not the below:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^ www.jonesmillbank.com [NC]
RewriteRule ^(.*)$ https://jonesmillbank.com/$1 [L,R=301]


Any ideas? Sitemap is all non-www.
 
Thanks, but no, shouldn't be anything to do with that. Shouldn't be anything other than htaccess which is why I'm so confused!

Edit: Hmmm, think I've fixed it, just be repasting in another 'identical' piece of code which has removed the space between the ^ and domain in the Cond.
 
Back
Top Bottom