[thelist] IIS, Search Engine Friendly URLs- ISAPI plugin?

.jeff jeff at members.evolt.org
Wed Jan 8 23:26:01 CST 2003


joshua,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Joshua Olson
>
> > http://www.isapirewrite.com/
>
> I just started using this tool lately.  Love it.  But,
> I was wondering if anybody has a resource that has regex
> expressions for major query strings? I have been banging
> my head trying to get something that works in every
> case.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

you know you can stack them up, right?

so, why not have some generic regexes to clean up the less "clean" of the
semi-synonymous requests:

/chapter/109//?foo=bar -> /chapter/109/?foo=bar
/chapter/109?foo=bar   -> /chapter/109/?foo=bar
/chapter/109           -> /chapter/109/

then, you only have to check whether or not there's a querystring and if so,
append it with an ampersand

/chapter/109/          -> /_secret/chapter.cfm?chapter_id=109
/chapter/109/?foo=bar  -> /_secret/chapter.cfm?chapter_id=109&foo=bar

http://www.isapirewrite.com/docs/#RewriteRule

hope this helps some,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list