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 22:12:59 GMT
Patrick Campbell wrote:
> Thanks for your help -
> 
> Here's the problem still:
> 
> If I go to
> http://www.mydomain.com/brand=3333 then I'll get to google
> 
> But I need it to catch if I go to
> http://www.mydomain.com/"anything"brand=3333"anything" and shoot me over 
> to google.com
> 

Sorry,. i forgot

RewriteEngine On
RewriteRule brand=12345(.*) "http://www.google.com"



> -- 
> Patrick Campbell
> OurVacationStore.com
> Website Administrator
> Tel. 602.896.4729
> -----Original Message-----
> From: Ivan Barrera A. [mailto:Bruce@Ivn.cl]
> Sent: Wednesday, April 13, 2005 2:54 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Simple mod_rewrite issue
> 
> 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
> 


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