Welcome to WebmasterWorld Guest from 54.196.244.45

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)

Full Member

10+ Year Member

joined:Jan 5, 2004
posts:202
votes: 0


I have the rewrite rule:

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

this will do fine with:

[domain.com...]

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

but I want it to work with the following url:

[domain.com...]

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)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

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

Jim

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

Full Member

10+ Year Member

joined:Jan 5, 2004
posts:202
votes: 0


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