[thelist] ISAPI_Rewrite and hiding querystring parameters

Joshua Olson joshua at waetech.com
Tue Feb 11 11:51:01 CST 2003


----- Original Message -----
From: "Craig" <cd-ml at aardvark.net.au>
Sent: Tuesday, February 11, 2003 10:19 AM


> Hi all,
>
> the URL looks like: showimage.asp?image=blah.gif
>
> Is it possible with ISAPI_Rewrite to rewrite it so it doesn't show the qs
> parameters in the URL?
>
> so, i would like: showimage.asp?image=blah.gif
> to actually appear to the user as: showimage.asp

Craig,

No, it's not since that URL doesn't have enough information--unless that is,
blah.gif is the only image you ever plan on serving.

However, you can use ISAPI_ReWrite to do the following conversion:

/images/blah.gif

becomes:

/showimage.asp?image=blah.gif



The rule may look something like this:

RewriteRule /images/+([^(gif|jpg)]+)\.(gif|jpg) /showimage.asp\?image=$1.$2
[I]

HTH,

-joshua




More information about the thelist mailing list