
A Smarter 301 permanent redirect solution using ASP!
Ever notice that your site is being indexed in search as
http://site.com and http://www.site.com? This is because your site most
likely responds to both variations and is known as a canonical problem.
The non-WWW address shows the same content as the WWW address so below
we are going to cover 3 problems. First, how do I fix the canonical
problem correctly, second, how do you perform a redirect that search
engines will understand and not penalize for, third, how do I move my
website to a new domain name properly?
That's right, response.redirect is not a good idea because it produces a response of
code 302 meaning temporary redirect and search engines don't like 302
anymore!
1. Redirecting correctly via ASP
2. Non WWW redirecting to the WWW version with ASP, this will seamlessly send the user to
the correct page even carrying over the query string and URL.
3. Moving to a completely new domain name or website
address (permanent 301 redirect).
|