Sunday, September 6, 2009

Understanding Sneaky Redirects

What are the good redirects and bad redirects(sneaky redirects)?

The redirect of a web page made using Javascript is a sneaky redirect.

Why?


Because search engines ignores javascript. So they don't know even there is a redirect exists.

Which redirecting techniques are good?

Using meta redirect 
<meta http-equiv="refresh" content="2; url=http://web-search-techniques.blogspot.com">
For more info: http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm

Using .htaccess (mod rewrite)

Or use 301(permanent) redirect using .htaccess

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

For more info on .htaccess 301 redirect: http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm

No comments:

Post a Comment