Msg#: 4519542 posted 2:09 am on Nov 16, 2012 (gmt 0)
Not sure if this is the correct category to post to. If not, let me know which. I just came into a project where my client redesigned her site and also went with a new shopping cart. The old site would redirect from www.myclient.com to www.myclient.com/site. We just migrated to the new shopping cart, but when you Google it - it still has the www.myclient.com/site and when you click it - you get a "this link is broken error". I'm not too technical, so please let me know how I can resolve this. I guess we need www.myclient.com/site to now redirect to www.myclient.com.
Msg#: 4519542 posted 3:43 am on Nov 16, 2012 (gmt 0)
I kinda think this thread is about to be bumped over to Apache. Or, oops, to IIS. In fact someone will need to know which it is, or nobody will be able to start on the "how" question.
Meanwhile you will be happy to hear that we like getting everything spelled out clearly in English. But you will have to be a little bit technical. At least technical enough to look into your physical site (by FTP or similar) and see what's there.
If you've changed any part of your software, they have probably given you a new htaccess to go with it. Or, ahem, IIS equivalent.
Msg#: 4519542 posted 5:58 am on Nov 16, 2012 (gmt 0)
welcome to WebmasterWorld, ultrafade!
when you request http://www.example.com/site what status code are you getting? i assume it's a 404 with the "this link is broken error". you should be responding with a 301 status code and this HTTP Response header: Location: http://www.example.com/
as lucy24 mentioned, how you do that depends on your configuration.
Msg#: 4519542 posted 11:02 am on Dec 17, 2012 (gmt 0)
Canonical tags can't help here as the request doesn't result in a page of content being returned.
You'll need to set up redirects from the old to the new URLs. If it is a "simple" change in the URL, such as adding, removing or changing a folder name or hostname then one or two lines of code may be all you need.
If the URLs change in a non-simple way, e.g. example.com?id=543 becomes example.com/widget then you'll need to rewrite requests for old URLs to an internal PHP (or other) script that looks up the new URL in an array or in a database and then sends the correct HEADER 301 pointing to the new URL.