httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [users@httpd] java app URL rewrite
Date Thu, 18 Sep 2008 21:18:25 GMT
On 9/18/08, Stauffer, Robert G <> wrote:
> Same thing happened: It serves up the correct page, but the browser URL
> is instead of
>  And the second RewriteRule is
>  ignored:
>  Bob Stauffer

You may be confusing several different processes.
1. The browser sends a request.  If the URL for
should redirect to, then you need
a redirect.  Only a redirect will change the browser's URL.
2. The server responds to a request.  If should be served by
http://portal-dev:81/jahia/Jahia/site/jazzd/pid/9, then a RewriteRule
should add the "jahia/Jahia/".  RewriteRules do not affect the
browser, only how the server processes the request.
3. The page is sent to the browser.  Links on the page may include the
"jahia/Jahia/".  People following the links will see the
"jahia/Jahia/".  Fixing the links requires either changing the
application that created the page (often by configuring the root URL)
or using mod_proxy_html.  Rewriting links is obviously critical
functionality still not included in Apache httpd.  (My first Web
application included this functionality.)

Rewrite_Rules do not change browsers' URLs.  You need to use the
correct technology to create your solution.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message