httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Problem mit httpd2 + tomcat5.5.9 + mod_rewrite
Date Mon, 14 Nov 2005 14:28:48 GMT
On 11/14/05, Peter.Neu@gmx.net <Peter.Neu@gmx.net> wrote:
> Hello,
>
> I'm still struggling with the mod_rewrite module in combination with the
> tomcat server.
>
> I changed my configuration to this:
>
> LoadModule rewrite_module /usr/lib/apache2/mod_rewrite.so
> RewriteEngine on
> RewriteLog /var/log/apache2/mod_rewrite.log
> RewriteLogLevel 2
> RewriteRule ^/pnbw/postHv\.html$ /nothing.htm
>
> But it still does not work. The log output tells me this:
>
> [rid#8182058/initial] (2) init rewrite engine with requested uri
> /pnbw/postHv.html
> [rid#8182058/initial] (2) rewrite /pnbw/postHv.html -> /nothing.htm
> [rid#8182058/initial] (2) local path result: /nothing.htm
> [rid#8182058/initial] (2) prefixed with document_root to /nothing.htm
> [rid#8182058/initial] (1) go-ahead with /nothing.htm [OK]
>
> This looks like it works. But in the browser window I still see the url I
> wanted to have replaced.
>
> Does anybody have an idea what could be wrong?

If you want "/nothing.htm" to appear in the browser's location bar,
then add [R] to the end of the RerwriteRule.

Joshua.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message