Re: [users@httpd] Simple mod_rewrite issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx]
Sent: Wednesday, April 13, 2005 2:54 PM
To: users@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux