Magento - Forward Non www to www

dazfree

Free Member
Mar 10, 2008
226
6
Hi Guys,

Google have indexed my new Magento store however they have indexed the non www version (e.g. http://mystore.com).

Ideally I want them to access the www version (e.g. http://www.mystore.com).

Therefore I want to do 301 redirects from the non www to the www version. Is there something in the admin section that can be changed for this to happen? Or do I need to do something to the .htaccess file?

Thanks,

D
 

gary

Free Member
Feb 9, 2003
819
3
London
You'll need to set up a 301 redirect in .htaccess, redirecting the non-www to the www. There are plenty of examples on Google if you're not sure how to do it.

Once you've done that, login to Google Webmaster Central (http://www.google.co.uk/webmasters/) and tell Google that you want to use the www version - you'll need to verify your site and each domain first though, but it's fairly simple to do.

HTH.

Gary
 
Upvote 0

sonnas

Free Member
Dec 8, 2008
430
25
got that code in and it works fine, only problem is the discount codes nolonger work when applied. the system gives a transaction failed message if the customer chooses to use (the coupond code currently give free post and packaging) after the customer has entered all the card details. Thing is, if the customer doesnt choose to use discount code and chooses normal shipping, the transaction works fine... any ideas?:|
 
Upvote 0

Latest Articles