I need some advise/help on writing and installing the right Re-Direct code on my site. By the way, I am using an IIS server (I understand the solution varies depending on the server). Also I am using ASP.NET to be more specific. The Problem: I get different results when I use http://www.marketleap.com/publinkpop/ to analyze my site using 1. "www.consumerchoicereview.com" 2. "consumerchoicereview.com" I is a really big difference in Yahoo/MSN (much higher with "consumerchoicereview.com") but not Google Links I get 60 Google links with "www.consumerchoicereview.com" but low overall count in MSN/Yahoo. Questions: 1. How can I re-direct traffic and spiders to domain "www.consumerchoicereview.com" (Looking for code, and instructions on implementation) 2. Will this code have in negative affects my pending Google PR (currently PR0) Gene www.ConsumerChoiceReview.com
The answer depends on if you have access to the IIS manager on the server, or are you on shared hosting? If you are on shared, here is a little script you can use, it's not a perfect solution really, but here it is. Place it at the top of all files (hopefully in a header include) This will redirect to non www (Just saw, you are on asp.net, not sure if code below will work for asp.net...) PATH_INFO = lcase(Request.servervariables("PATH_INFO")) if PATH_INFO = "/default.asp" then PATH_INFO = "" end if HTTP_HOST = lcase(Request.servervariables("HTTP_HOST")) if instr(HTTP_HOST, "www.") = 1 then newurl = "http://example.com" & PATH_INFO response.redirect(newurl) end if Code (markup): If you have access to the IIS manager, just create a new website, but use www.example.com host header and choose redirect permanent to example.com, also be sure example.com website does NOT have www.example.com host header.