httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Barrera A." <Br...@Ivn.cl>
Subject Re: [users@httpd] Simple mod_rewrite issue
Date Wed, 13 Apr 2005 21:54:16 GMT
Patrick Campbell wrote:
> I am a little slow with this mod_rewrite stuff. I need basically 
> something very simple:
> 
> If the url contains the string "brand=12345" (anywhere in the url), then 
> send it to www.whatevercom/some/external/site
> 
> I've tried something like
> 
> RewriteEngine On
> RewriteRule ^brand=12345$ "http://www.google.com"

remove ^ and $
^ means "starts at"
$ means "ends at"

> 
> But this isn't working, I know I'm not doing this right but don't know 
> how to fix it.
> 
> Thanks.
> 
> -- 
> Patrick Campbell
> OurVacationStore.com
> Website Administrator
> Tel. 602.896.4729
> 

---------------------------------------------------------------------
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