With the urlrewrite module, at the end of the urlrewriter where it attempts to match on a tabname, if it fails to find a match it returns an asp.net error. I modified the code so if it does fail to find a match, then it goes to a hardcoded tabname of my choosing. I'll post the mod code here shortly.
On a tangent, what's nice about this is I am using it for my upcoming wiki module. This is fantastic for SEO and best possible URLs. So whenever my url string does not match, I simply send it to my wiki page (not released as this post) as shown below.
http://www.yapclub.com/dfw/sdfsd12d12df.aspx http://www.yapclub.com/dfw/sdfsdffgsdfgsdfgdfgd/sdfsd12d12df.aspx http://www.yapclub.com/dfw/sdfsdffgsdfgsdfgdfgd/dsdf/sdfsdf/sdfs111dsdfs/d12d12df.aspx
at which I can put any error message I want. In my case, I simply indicate that the wiki term was not found.
But when there is a match, my wiki will return a result:
http://www.yapclub.com/dfw/dallas-entertainment.aspx http://www.yapclub.com/dfw/dallas-nightlife.aspx
So this way my site is super url optimized. :)
Jason |