PDA

View Full Version : Apache Rewrites


doof205
6th December 2005, 13:36
I'm trying to get apache to redirect users going from:

https://www.xxxxxxxxx.com/cgi/texis/webinator/search?db=iplaw

to: http://g-search.xxxxxxxx.com/

I'm using the following to do it:

RewriteRule ^/cgi/texis/webinator/search(.*) http://g-search.xxxxxxx.com

But unfortunately it always seems to leave the ?db=iplaw on the end so i get this:

http://g-search.xxxxxx.com/?db=iplaw

Anyone got any ideas on this one? It'd be much appreciated!!

Lewis.

falko
6th December 2005, 15:15
Did you have a look here? http://httpd.apache.org/docs/1.3/misc/rewriteguide.html