homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Site Re-direction
I Want to point site 1 at site 2
paul_king




msg:660210
 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
Paul

 

Black Knight




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

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.

Ammon

paul_king




msg:660212
 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
Paul

Black Knight




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

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">
<!--
top.location.replace('http://www.site2.com/');
//-->
</script>

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.

paul_king




msg:660214
 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.
Paul

DaveAtIFG




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

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].

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved