I have an ASP forum that shows .../forum/ and .../forum/default.asp as duplicate content on Google webmaster tools. I want to use a 301 redirect to solve the issue. I first added this to the web.config file:
Code:
<location path="forum/default.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.searchbliss.com/forum/" exactDestination="true" httpResponseStatus="Permanent" />
</system.webServer>
</location>
This worked fine, until I realized the sub-forums used default.asp with query strings, which was redirected to ...forum/
I can't find a way to only redirect if NO query string is present using the web.config (iis7).
Is there a way to do this with ASP???
Thanks!
P.S. Calling Chris Hirst or any equivalents!
|