Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite.ini

ISS mod RewriteRule

         

Alternative Future

3:10 pm on Jul 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

I have a mod_rewrite.ini in place on my ISS server with the following rule:
Debug 1
Reload 1000
RewriteRule ^/website/(.*).html /website/execute/nav?cmd=display$1

This works fine, but what I would like to be able to do is, when the browser gets a request for ht*p://www.domain.com/products.html is have the rewrite rule replace the first character with an uppercase char so that my event can handle the request the rule would end up forwarding to /website/execute/nav?cmd=displayProducts

Is this possible?

Many thanks in advance for any help on the matter,

-George

jdMorgan

2:11 pm on Jul 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



George,

Just to clarify since there are no replies yet, is this an IIS server? The rules and capabilites of ISAPI Rewrite are slightly different, and I suspect no-one wants to give you Apache-related info which might be wrong for ISAPI Rewrite...

Changing character case in Apache mod_rewrite is a pain, and inefficient. If you *are* on Apache, I'd recommend doing the case conversion in your script if possible.

Jim

Alternative Future

8:42 am on Jul 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Jim,

Yeah the question was related to ISAPI Rewrite. Since there was no replies I went ahead and done the case conversion in my script.

Many thanks for taking the time out to reply Jim.

-George