Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Rewrite Rule

escaping . and? characters in the url



9:29 pm on Aug 18, 2006 (gmt 0)

10+ Year Member

I have the rewrite rule:

RewriteEngine on
RewriteRule ^run(.+) /example.php?$1 [L]

this will do fine with:


(it rewrites to: [domain.com...]

but I want it to work with the following url:


I thought I could just escape the . and? with backslashes to make this work:

RewriteEngine on
RewriteRule ^run\.cgi\?(.+) /example.php?$1 [L]

But that always produces errors. Does anyone know how can I do this?


9:42 pm on Aug 18, 2006 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

See this recent thread: [webmasterworld.com...]

For more information, check out Changing dynamic URLs to static URLs [webmasterworld.com] in our forum library.



9:48 pm on Aug 18, 2006 (gmt 0)

10+ Year Member

Thanks very much for the thread reference. Checked that out and got it working. A huge help.

Featured Threads

Hot Threads This Week

Hot Threads This Month