Okay. I know that this is not the most elegant approach, and it is not the most SEO friendly approach either, but using the URLRewrite Module and its configuration, I was able to almost get this completed using the following config snippet:
<RewriterRule>
<LookFor>.*(subdomain\.domain\.com)(.*)/TabId/(\d+).*</LookFor>
<SendTo>http://www.domain.com$2/tabid/$3/Default.aspx</SendTo>
</RewriterRule>
At first glance, it would appear that this should work. However, there are some very distinct weaknesses:
- I am not sending a HTTP Response 301 header to search spiders
- I am cutting out (or duplicating) the Portal Alias functionality in Site Settings
- I am still getting the folder path sent as a querystring
Does anyone have any idea why I still get the folder path returned as a querystring even though I have it in the rewritten url?
For example, this URL is rewritten:
http://subdomain.domain.com/Home/Feedback/tabid/123/Default.aspx
To be:
http://www.domain.com/Home/Feedback/tabid/123/Default.aspx?Home=Feedback
Argh!...