URL rewriting (was RE: [thelist] your research on search engines and the sites you work on)

.jeff jeff at members.evolt.org
Wed Nov 6 17:08:22 CST 2002


chris,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Chris W. Parker
>
> i think i ran into a problem with the ISAPI tool at
> cfdev that ben mentioned with regards to the MS URLScan
> tool. i don't think it liked the . in the URL. actually
> wait... maybe it was that frontpage didn't like it. (one
> more reason to do away with frontpage here at work.)
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

actually, i think the documentation that comes with cfdev's isapi filter
specifically states that it can't handle dots in the slash-delimited query
string.

  "Spider Safe URL will not be able to parse query
   strings that contain . (dots) in them, since it
   uses an algorithm designed for maximum efficency.
   But since the source code is included feel free
   to change the source code to include checking."

http://www.cfdev.com/products/productdetail.cfm/id/1023

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> .jeff i don't know if you work with IIS or not, but if
> so, do you have any recommendations for other URL
> rewriting programs?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

i've worked with both apache on linux and iis.  i much prefer iis for
coldfusion development.

when it comes to url parsing, i currently do it all within coldfusion.
however, i've recently done some research with regard to external tools that
can do it to increase the performance of the requests and have found one
that i've had a chance to use, really like, and is very affordable:

iis rewrite
http://www.qwerksoft.com/products/iisrewrite/

with my particular approach rewriting the url prior to coldfusion getting
the request doesn't yield alot of benefit because i don't pass the name
portion of the name/value pairs.  i rely on the position of the value in the
directory-style query string to know which variable to match it up with.
consequently, i do a very minimum amount of rewriting.  basically the
following requests:

domain.com/foo/bar/
domain.com/foo/bar/?cfid=98715&cftoken=9713597

get converted to:

domain.com/?params=/foo/bar/
domain.com/?params=/foo/bar/&cfid=98715&cftoken=9713597

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> to anyone else, any tutorials on using the 404 page to
> rewrite the url taking into account the proper response
> codes?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

well, if you're using an isapi filter to rewrite the url, i don't think
you'll have to deal with the 404 page, custom errors, incorrect status
codes, etc.

.jeff

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




More information about the thelist mailing list