February 12, 201214 yr Could someone help me with a problem I have. My site http://www.chelseatalk.co.uk always goes to http://chelseatalk.co.uk I have two Alexa rankings. How can I link these?
February 12, 201214 yr This should be able to be customised in the control panel of your domain name registrar. I know 123-reg gives you the option to select with or without the www. Hope this helps. Jake.
February 12, 201214 yr Paste this into notepad (or if you already have a .htaccess file, paste it in there)... RewriteEngine On RewriteCond %{HTTP_HOST} !^(.*)\.chelseatalk\.co.uk $ [NC] RewriteRule ^(.*)$ http://www.chelseatalk.co.uk /$1 [R=301,L] Save as .htaccess, upload to the root of your server (typically public_folder). Check that the file on the server is named .htaccess NOT .htaccess.txt That should solve the problem. Edited February 12, 201214 yr by Bomb
February 12, 201214 yr You appear to be hosted with one.com in Denmark. I used to have a site hosted there but it would resolve with or without the www. It may be that they have introduced a default 301 redirect or perhaps you have inadvertently specified it when you set up your hosting. Check your CPanel.
February 13, 201214 yr Author I used the code above and can't access my website. Any ideas what to do?
February 13, 201214 yr Remove the code from your .htaccess file & look into your cpanel as others have suggested. If that fails, contact your host.
February 13, 201214 yr I used the code above and can't access my website. Any ideas what to do? Yes put the original .htaccess file back. I take it you saved a copy, if not...?!? Does it matter that much whether you have the www. or not? Most webmasters apply a 301 to resolve the address to have the www. or not have the www. in order to maximise their "link juice" anyway. So if your site resolves to not having the www. then all links will count towards it.
February 13, 201214 yr Author I hadn't solved the old but managed to get it back. Thanks for the help!
Create an account or sign in to comment