Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod_rewrite |
|
Author |
|
brewdude
Joined: 18 Jan 2008 Posts: 12
|
Posted: Thu 28 Feb '08 2:23 Post subject: mod_rewrite |
|
|
I need to rewrite a url and part of the uri. Anyone know if I can do this? This is what I'd like to do, but haven't tested yet. Code: |
RewriteCond %{HTTP_HOST} !^www\.mydomain\.company\.com/servlet/xmlServlet2.class$ [NC]
RewriteRule .? https://ws.myotherdomain.com/newservlet%{REQUEST_URI} [R=301,L] |
Basically what I want to do is use a substitution, but I want to substitute part of the URI as well. Any help would be appreciated. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|