Just read through this thread and have a question
Most of what's been said has been about permanent redirects - one domain to another, or 'www.domain.com' to 'domain.com.
But what is the best to use when you want to redirect to another directory on the same domain?
We have a shopping cart which is one level down from root for ease of synching uploads - eg. www.mydomain.com/catalog/index.php - and we've been using a 302 in the form of a directoryindex in the htaccess for the last year, and lately we're trying the php 'location' method.
The shop's been getting indexed by Google for the last 3 months but I notice in CPanel awstats is showing a lot of 302 redirects.
1. Would it be better to put a 301 redirect in the htaccess or to leave it as it is with a 302?
I read (somewhere else) that 301's are only for external (other site) redirects, but I'm concerned after reading through this thread that we might get dumped by Google sometime in the future for having 302's.
2. Also, We have another site that has just changed cart types (osCommerce to Zen cart - but the domain is the same) and the new cart type has a different URL structure, so all the existing links displayed on Google for the old cart are not going to bring the customer to the correct page, but rather generate a 404 - page not found error.
We've put a custom 404 page with a meta refresh (probably a 302 - not sure) redirect to take them to the main page (which works fine) but Google still hasn't got the new site completely indexed after a month and we're wondering if we should change that to a 301 also.
Any comments you guys have would be really helpful, since we don't really know much about this stuff
Edited by chrishirst, 19 March 2005 - 07:19 AM.