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