OK, enough with the chit-chat, let’s see how can you make some redirects via .httaccess:
Again, pay a great attention to the syntax! A forgotten comma or a missing space is enough to create an epic mess or even to crash your site! If you have any doubts, you should always use a different redirection method or at least a free online .htaccess creator that can help you to avoid any potential syntax errors. For example:
http://beamusup.com/generate-htaccess/
One more thing … If you are running an e-commerce website, most likely you are going to have temporarily unavailable or permanently discontinued products. In these situations you’ll have to provide user- and search-engine-friendly alternative pages and each problem must be managed differently:
- temporarily unavailable products; evidently, removing the page is not an option, so you’ll have to create a separate friendly page to clearly state that the product is unavailable, and to provide all the relevant information the visitors may need; you should include the item’s planned arrival date, a pre-order option, a list with similar products and most importantly, you must give your customers an option to get notified when the item arrives
- permanently discontinued products; in this case you have two options: to use a nice custom 404 page for pages that don’t have too many backlinks, or to use a 301 redirect – to a similar item or a relevant product category – for pages that serve as entrance points, have many valuable backlinks or ranks well for organic search queries
Regards,
Nila