Re: RewriteEngine not working in (my) apache2
- From: Jeff D <fixedored@xxxxxxxxx>
- Date: Fri, 29 Sep 2006 12:05:45 -0700
Kaj Wiik wrote:
Roberto C. Sanchez wrote:here is how I have mine set up:
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
in /etc/apache2/sites-enabled/00-default after <VirtualHost *> I have :
RewriteEngine on
RewriteLogLevel 9
RewriteLog /tmp/rewrite
RewriteCond %{REQUEST_URI} !/test/foo\.html [NC]
RewriteRule foo(.*) /test/foo.html [R,L]
in /var/www/ , there is no foo files at all
in /var/www/test/ i have foo.html
Id check to make sure your rewite rules are in your virtualhost directive though.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- RewriteEngine not working in (my) apache2
- From: Kaj Wiik
- Re: RewriteEngine not working in (my) apache2
- From: Roberto C. Sanchez
- Re: RewriteEngine not working in (my) apache2
- From: Jeff D
- Re: RewriteEngine not working in (my) apache2
- From: Kaj Wiik
- RewriteEngine not working in (my) apache2
- Prev by Date: Re: idsoftware games
- Next by Date: Re: idsoftware games
- Previous by thread: Re: RewriteEngine not working in (my) apache2
- Next by thread: booting up - everytime's a surprise!
- Index(es):
Relevant Pages
|
|