logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_rewrite
Author
brewdude



Joined: 18 Jan 2008
Posts: 12

PostPosted: Thu 28 Feb '08 2:23    Post subject: mod_rewrite Reply with quote

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

PostPosted: Sat 15 Mar '08 22:05    Post subject: Reply with quote

You can ask there: http://forum.modrewrite.com/
There are spcialist
Back to top


Reply to topic   Topic: mod_rewrite View previous topic :: View next topic
Post new topic   Forum Index -> Apache