varnco Posted July 20, 2004 Posted July 20, 2004 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"); ?>
Jack_mcs Posted July 20, 2004 Posted July 20, 2004 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
varnco Posted July 23, 2004 Author Posted July 23, 2004 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.