Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Site Re-direction

I Want to point site 1 at site 2



10:38 am on Jul 8, 2001 (gmt 0)

Please could someone advise me, I am sure this is a simple request when arriving at www.site1.com I want the user to be sent to www.site2.com seemlessly i.e. they dont even know they have been redirected. I want to do this so that I can have the site1 redesigned without losing coverage.
Thank you

Black Knight

12:32 pm on Jul 8, 2001 (gmt 0)

10+ Year Member

If that is the genuine reason, why not simply point the domain name for the site you are redesigning to the other site while the work is being done?

If your real motive is to have the SEs index one page while the visitor lands at another then you either need cloaking (the most seamless method), or you have to use javascript and ignore the 1% it won't affect.



12:40 pm on Jul 8, 2001 (gmt 0)

Thanks Ammon,

>> why not simply point the domain name for the site you are redesigning to the other site while the work is being done? >>

My problem is I have full access to both sites and dont want to totally knock out the first site just redirect the hits as you understand from the above comment, my question is "how do I redirect the hits?" should I simply move my index.htm from site1 to site 2? or do I need to speak with the ISP?

Sorry to be so thick I am the owner of the site but I am not the developer (who is not available at present)

Thank you

Black Knight

2:16 pm on Jul 8, 2001 (gmt 0)

10+ Year Member

Do you want to redirect the search engine spider to the pages that are for the public also, or do you want the spider to keep crawling the site that is being reconstructed?

To redirect the spider too, the simplest, best and most effective method is to repoint the domain name to the accessible site while work is being done. It only takes the same amount of time to change it back when work is complete so it doesn't 'knock the site out' any more than reconstruction will.

Alternately, simply include a meta tag refresh to the second site in the head of each page. Most spiders can detect, and some will follow, the refresh meta tag.

If you only want human visitors redirected (you don't fear broken links etc will affect your ranking for the site being rebuilt) then the best method is going to be cloaking.

A search for 'cloaking' will probably bring you up many of the commercial suppliers of the scripts you'll need. Look for a company that updates their spider IP address list regularly and reacts speedily.

Since your purpose is not to protect your code, virtually any method of cloaking will do, even purely user-agent detection based, but those based on IP address are often more reliable.

JavaScript is an option, but doesn't work for any users with JavaScript disabled in their browser (about 2% or 2% of all visitors in my experience).

<script language="javascript" type="text/javascript">

The above script placed in the HEAD section of each page will do the trick, but better still is to make the actual javascript line an external .JS file, so the spiders won't detect it.


7:06 pm on Jul 8, 2001 (gmt 0)

Hi Ammon,

Thank you for the clarity of your advice, you were extrememly helpful and I appreciate your knowledge, the old site is currently obscured whilst we work on it and the new site is already receiving the traffic.

Thank you.


5:17 am on Jul 9, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Using .htaccess to redirect traffic on an Apache/*nix server is probably your best option if it's available to you. It usually is. The redirect is done on the server, it's simple and transparent.

First, verify with your host that the mod_rewrite module is installed and available for your use. If so, a simple introductory example of redirection is here [bignosebird.com], a detailed set of examples and explanations is here [engelschall.com] and Apache's reference docs are here [httpd.apache.org].


Featured Threads

Hot Threads This Week

Hot Threads This Month