homepage Welcome to WebmasterWorld Guest from 54.167.174.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Rewrite Rule
escaping . and? characters in the url
rover

10+ Year Member



 
Msg#: 3052159 posted 9:29 pm on Aug 18, 2006 (gmt 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?

 

jdMorgan

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



 
Msg#: 3052159 posted 9:42 pm on Aug 18, 2006 (gmt 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

rover

10+ Year Member



 
Msg#: 3052159 posted 9:48 pm on Aug 18, 2006 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved