0 Replies Latest reply on Jan 8, 2008 11:47 AM by Graham Kincade

    URL rewrite only working with Redirect  flag

    Graham Kincade Newbie

      We have a standard servlet and have deployed through JBoss AS 4.2.2.GA using JBoss Web to take advantage of the Rewrite valve.

      Test rules have been tried but we're getting 404's on the RewriteRule substitution. It works if we specify the Redirect flag (but we obviously then get the full URL that we wanted to avoid).

      The simple test rule we have is :

      RewriteCond %{PATH_INFO} ^/solutions [NC]
      RewriteRule ^/(.*) %{HTTP_REFERER}servletcontainer?I=1&N=1&process=solutions

      The 404 reports that "the requested resource(http://localhost/servletcontainer) is not available".

      Removing the '?' gives the full substitution string (but obviously fails to get the page and data).

      So it looks like a problem with the "?".

      The URL works okay if typed in so we're stuck as to what the issue is.

      All help gratefully received.