I am not sure whether you want to redirect any request for a URL path that 
starts with /abc, or if only requests for /abc/ or /abc should be redirected. I 
assumed the former:

   RewriteRule ^/abc/ http://www.mynewsite.com/jsp/services/abc.jsp [R=301,L]
   RewriteRule .* http://www.mynewsite.com/jsp/abc/services/services.jsp 
[R=301,L] 

Note that the order in which the rules appear is significant.

-ascs
________________________________

From: Daniel Teklu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 08, 2005 11:37 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] rewrite exclude



I have a rewrite that is working fine. It is: 

        RewriteRule /.* http://www.mynewsite.com/jsp/abc/services/services.jsp 
[R=301,L] 

However, I would like to exclude one like /abc and send it to another url as 

 /abc to http://www.mynewsite.com/jsp/services/abc.jsp 

How do I do that? 

Thanks 
-Daniel 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to