I built a website with classic ASP that has two types of URLs:
and
Will this be a problem for the site in terms of Google indexing content? Will Google incorrectly think I’m trying to “game” the system?
I built a website with classic ASP that has two types of URLs:
Add comment viewed 807 times Latest activity over 1 year ago
You don’t want Google or other search engines to ever think that there is duplicate information on your website. I can’t say for sure whether a search engine’s algorithm knows that /product/widget and /product/widget.asp are the same and will not penalize your website. No one knows except maybe Matt Cutts.
//determine page namepagename = Request.ServerVariables(“SCRIPT_NAME”)//now process it if it’s the wrong kind
if inStr(pagename, “.asp”) > 0 then
newpagename = Left(pagename,Len(pagename)-4)response.redirect “http://www.domain.com/product/” & newpagename
end if
You can also use mod_rewrite for Apache HTTP Server to redirect/rewrite your urls.