mod_rewrite: how to discard tail of the URL?

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

 



I'm running RHEL4 update 3 with Apache/2.2.4
 
I want to redirect this:
 
http://foo.bar.com/search/search-events.front?keywords=&x=35&y=6
 
to this:
 
http://foo.bar.com/events/
 
 
I am using this rewrite rule:
 
RewriteCond %{HTTP_HOST} ^foo.bar.com$
RewriteRule ^/search/search-events(.*) http://foo.bar.com/events/ [L]
 
The problem is that the redirect returns this:
 
/events/?keywords=&x=35&y=6
 
 
 
How the heck do I discard the tail end of the URL??
 
 

[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