Apache HttpServer redirection with mod_rewrite
Posted on 2006-10-20
Need help with Apache HTTP Server redirection.
I have a URL like this
Now, I need to redirect the user to a URL like this.
So, there are two changes to the new URL.
1.Update to request URI (replace vehicledirect/vehicle.jsp with dealerdirect/dealer.jsp)
2.Add a new parameter to query string. (vehicle=somevehicle)
I need a Rewrite rule to perform this operation. I'm using apache httpd.conf file to set this.