Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redirecting to new directory & search rank?


varnco

Recommended Posts

Posted

Just wondering, if I use the following code in a redirect, will it mess up search engines that are currently indexing my site?

 

In index.php, use:

 

<?

header("Location: catalog/catalog/default.php");

?>

Posted

The SE's can get upset if you don't redirect properly (by their guidelines). DMoz won't even list you if you have an obvious redirect. So I would be real careful with how you redirect if I were you. This isn't to say that using header isn't valid. There are conflicting opinions on the web. Why risk it? You would be better doing it using asp (if on a Windows server) or with .htaccess if on Linux. These are known, valid redirect methods. If google decides you are trying to pull something, even if you are not, they may ban you. And while you may be able to argue your case and get back on, you could lose months. It wouldn't be worth it to me.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

The problem is that I am pointing several domains on one hosting, using Cpanel add-on feature.

 

The current redirect redirects all domains, and I only want it to redirect one domain.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...