Re: RewriteEngine not working in (my) apache2



Roberto C. Sanchez wrote:
Have you tried adding "RewriteBase /" in there?
Thanks for suggestion, I tried but still nothing to the log and no
redirection.

On Thu, 2006-09-28 at 17:20 -0700, Jeff D wrote:
this should do it:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/test/foo\.html [NC]
RewriteRule foo(.*) /test/foo.html [R,L]

This suggestion changed the behaviour, now I get an error message:
[Fri Sep 29 14:09:32 2006] [error] [client 127.0.0.1] File does not
exist: /var/www/test.html/foop

instead of the previous:

[Fri Sep 29 14:09:10 2006] [error] [client 127.0.0.1] File does not
exist: /var/www/foop

So some rewriting is happening, but why nothing is written in the log
even if I have
RewriteLogLevel 9
RewriteLog /tmp/rewrite.log
??

I also checked that there are no other Rewrite rules/directives in the
config files..

Thanks,

Kaj

--
Kaj Wiik <kaj.wiik@xxxxxx>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RewriteEngine not working in (my) apache2
    ... This redirection does not seem to be working (in ... RewriteEngine on ... graceful, nothing gets printed in rewrite.log. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: RewriteEngine not working in (my) apache2
    ... redirection. ... RewriteEngine on ... there is no foo files at all ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: RewriteEngine not working in (my) apache2
    ... This redirection does not seem to be working (in ... RewriteEngine on ... graceful, nothing gets printed in rewrite.log. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: RewriteEngine not working in (my) apache2
    ... This redirection does not seem to be working (in ... RewriteEngine on ... graceful, nothing gets printed in rewrite.log. ... Roberto C. Sanchez ...
    (Debian-User)
  • Re: about a 301 redirection using modrewrite
    ... trying to do that with one of my test sites ... RewriteEngine On ... engines will not follow and obey the redirection and the list goes on. ... Sunset Zone: 21 -- interior Santa Monica Mountains with some ocean influence ...
    (comp.infosystems.www.authoring.html)