OK so just testing mod_rewrite I can get a Rewrite working for files that are NOT served by the plugin which ARE located inside of a <Directory>...</Directory> tags.

<Directory /opt/WebSphere/AppServer/installedApps/wcs1/WC_wcs.ear/Stores.war/ConsumerDirect/images/catalog/en_US>
RewriteEngine ON
RewriteBase /
RewriteRule ^X01_large.jpg$ footer.gif
</Directory>

Before I start trying to use mod_rewrite for a request for a JSP page (which should be handled by the WebSphere plugin), I would like to be able to Rewrite a request that is NOT inside of a Directory tag, since the request to the JSP most certainly won't be. So why is this tag:


RewriteEngine ON
RewriteRule ^X01_large.jpg$ footer.gif


...ignored by Apache? Is it not possible to use mod_rewrite outside of a <Directory> tag?


Thanks,
Jim

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 13:36:11 -0400

On 7/26/07, James Ellis <[EMAIL PROTECTED]> wrote:
> Within the plugin, all requests under "/stores/*" are supposed to be handled
> by the plugin.  Does anyone know how I can force a request for a certain
> JSP:
>
> http://servername/stores/suspect.jsp
>
> ...so that it won't be processed by the plugin?  I need to redirect all
> requests for this JSP to an html file on the web server (where Apache is
> installed).
>

You need to rewrite, using the [PT] flag, to something not under the
context root. Alternatively, you can use a redirect but this is
usually not so desirable.

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