Getting closer...the following works inside of a VirtualHost: <VirtualHost web1:80> ServerName web1 RewriteEngine ONRewriteRule ^/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 ONRewriteRule ^/wcsstore/ConsumerDirect/images/catalog/en_US/X01_large.jpg$ /footer.gif
...work outside of the VirtualHost?
From: "Eric Covener" <covener@xxxxxxxxx> Reply-To: users@xxxxxxxxxxxxxxxx To: users@xxxxxxxxxxxxxxxx Subject: Re: Handle a JSP Outside of WebSphere Plugin Date: Thu, 26 Jul 2007 17:03:01 -0400 On 7/26/07, James Ellis <ellisje22@xxxxxxxxxxx> 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 covener@xxxxxxxxx --------------------------------------------------------------------- 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- 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: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx