Getting closer...the following works inside of a VirtualHost:

<VirtualHost web1:80>
ServerName web1

RewriteEngine ON
RewriteRule ^/wcsstore/ConsumerDirect/images/catalog/en_US/X01_large.jpg$ /footer.gif

Alias   /wcsstore               
"/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcs/Stores.war"
Alias   /wcs                    
"/opt/WebSphere/AppServer/installedApps/stdwcs1/WC_wcs/CommerceAccelerator.war"
</VirtualHost>


...however the WebSphere plugin comes BEFORE this virtual host entry...so I think I need to use it outside of a VirtualHost. Why won't this entry:

RewriteEngine ON
RewriteRule ^/wcsstore/ConsumerDirect/images/catalog/en_US/X01_large.jpg$ /footer.gif


...work outside of the VirtualHost?





From: "Eric Covener" <[EMAIL PROTECTED]>
Reply-To: users@httpd.apache.org
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Handle a JSP Outside of WebSphere Plugin
Date: Thu, 26 Jul 2007 17:03:01 -0400

On 7/26/07, James Ellis <[EMAIL PROTECTED]> wrote:

>
> RewriteEngine ON
> RewriteRule ^X01_large.jpg$ footer.gif
>
>
> ...ignored by Apache? Is it not possible to use mod_rewrite outside of a
> <Directory> tag?


You have to compare to the complete URL-path. Outside of Directory or
.htaccess context, most normal requests will begin with a forward
slash.  Inside, Apache strips off all the "redundant" info leaving you
without a leading slash (and the entire leading directory or
rewritebase)

--
Eric Covener
[EMAIL PROTECTED]

---------------------------------------------------------------------
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]




---------------------------------------------------------------------
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