|
Calling Christ Hirst, and other vbScript gurus.
Is it possible to add a 301 redirect code to the HEADRER of my ASP forum (it'll be on every page) that will 301 redirect (for example) forum/default.asp?CAT_ID=8 to forum/?CAT_ID=8 which is the same page, without creating an infinate loop, using if else statements (because it'll reside in the header)?. A url rewrite if you will? Like > if this, then 301 to this, else nothing
Thank you for any input. I cannot do this with IIS7 (no control panel access), and everything I tried with the web.config does nothing when querystrings are involved. In other words,
--------Works-------
<location path="somepage.htm">
<system.webServer>
<httpRedirect enabled="true" destination="folder/somepage.htm" httpResponseStatus="Permanent" />
</system.webServer>
</location>
--------Does NOTHING--------
<location path="forum/default.asp?CAT_ID=8">
<system.webServer>
<httpRedirect enabled="true" destination="forum/?CAT_ID=8" httpResponseStatus="Permanent" />
</system.webServer>
</location>
So I'm looking for an alternative. Thanks!
|