View Single Post
Old 07-07-2004, 10:16 AM  
StarkReality
Confirmed User
 
StarkReality's Avatar
 
Join Date: May 2004
Location: 4 8 15 16 23 42
Posts: 4,444
Quote:
Originally posted by johnbosh
wharts a google clean way?
Well, there are many ways, how safe they are long term is unpredictable:

1. Simple JS redirect (window.location.replace): Still works with google without penalty, regardless of all rumors, but isn't the best way long term.

2. "Eval" JS: Good way, you split up different parts of the simple redirect and put them together via eval function again, this way a redirect detection looking for typical strings can't catch you that easy.

3. External JS: Great in combo with 2., you put the JS code in a separate file and include it on the page. Another advantage: If you ever want to change the redirect, you only have to edit a single file, not hundreds of pages

The bad thing about all above: Once the surfer disables JS, the real page will show up, so make sure you doorways don't look like shit.

4. Flash: Yep, you can include a little flash file that contains nothing but a redirect...I wouldn't do it, too many users without flash out there still.

There are many more ways, but the above are popular and easy.

Couple of things Google does NOT like: Cloaking via CSS, 302 redirects, htaccess error redirects, parent window replacements, meta refresh

Last edited by StarkReality; 07-07-2004 at 10:17 AM..
StarkReality is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote