httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony J. Biacco" <abia...@formatdynamics.com>
Subject RE: [users@httpd] RewriteRule problem
Date Wed, 18 Mar 2009 20:43:32 GMT
Rewriterule doesn't process query strings. He needs a "RewriteCond %{QUERY_STRING}"-type directive.

-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abiacco@formatdynamics.com
http://www.formatdynamics.com


-----Original Message-----
From: André Warnier [mailto:aw@ice-sa.com] 
Sent: Wednesday, March 18, 2009 2:37 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] RewriteRule problem

Campbell, Lance wrote:
> I want to do convert the below dynamic url to a static url:
> 
>  
> 
> http://acme.com/abc?id=123
> 
>  
> 
> To:
> 
>  
> 
> http://acme.com/efg/123
> 
>  
> 
> I have tried the following:
> 
>  
> 
> RewriteRule ^/abc?id=(.*)   /efg/$1
> 

Try:
RewriteRule ^/abc\?id=(.*)   /efg/$1

Well, actually maybe not.  Because I think that the question mark and 
query string (id=..") may not be part of what RewriteRule is comparing with.
But try it anyway ?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message