Re: RewriteEngine not working in (my) apache2

2006-09-29 Thread Kaj Wiik
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 [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RewriteEngine not working in (my) apache2

2006-09-29 Thread Jeff D

Kaj Wiik wrote:

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

  

here is how I have mine set up:

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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




RewriteEngine not working in (my) apache2

2006-09-28 Thread Kaj Wiik
Hi!

This (testing) redirection does not seem to be working (in
apache2.conf):

RewriteEngine on
RewriteLogLevel 9
RewriteLog /tmp/rewrite.log
RewriteRule ^/foo(.*) /test/foo.html 

(so e.g. if page /foop is requested, /test/foo.html should be returned)

I installed apache2 (sarge), sudo a2enmod rewrite, sudo apache2ctl
graceful, nothing gets printed in rewrite.log (it is created though).

error.log:
[Thu Sep 28 16:19:40 2006] [error] [client ] File does not
exist: /var/www/foop

Any clues?

Thanks,

Kaj

-- 
Kaj Wiik [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: RewriteEngine not working in (my) apache2

2006-09-28 Thread Roberto C. Sanchez
On Thu, Sep 28, 2006 at 04:29:04PM +0300, Kaj Wiik wrote:
 Hi!
 
 This (testing) redirection does not seem to be working (in
 apache2.conf):
 
 RewriteEngine on
 RewriteLogLevel 9
 RewriteLog /tmp/rewrite.log
 RewriteRule ^/foo(.*) /test/foo.html 
 
 (so e.g. if page /foop is requested, /test/foo.html should be returned)
 
 I installed apache2 (sarge), sudo a2enmod rewrite, sudo apache2ctl
 graceful, nothing gets printed in rewrite.log (it is created though).
 
 error.log:
 [Thu Sep 28 16:19:40 2006] [error] [client ] File does not
 exist: /var/www/foop
 
 Any clues?
 

Have you tried adding RewriteBase / in there?

Regards,

-Roberto
-- 
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com


signature.asc
Description: Digital signature


Re: RewriteEngine not working in (my) apache2

2006-09-28 Thread Jeff D

Roberto C. Sanchez wrote:

On Thu, Sep 28, 2006 at 04:29:04PM +0300, Kaj Wiik wrote:
  

Hi!

This (testing) redirection does not seem to be working (in
apache2.conf):

RewriteEngine on
RewriteLogLevel 9
RewriteLog /tmp/rewrite.log
RewriteRule ^/foo(.*) /test/foo.html 


(so e.g. if page /foop is requested, /test/foo.html should be returned)

I installed apache2 (sarge), sudo a2enmod rewrite, sudo apache2ctl
graceful, nothing gets printed in rewrite.log (it is created though).

error.log:
[Thu Sep 28 16:19:40 2006] [error] [client ] File does not
exist: /var/www/foop

Any clues?




Have you tried adding RewriteBase / in there?

Regards,

-Roberto
  

this should do it:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/test/foo\.html  [NC]
RewriteRule foo(.*) /test/foo.html  [R,L]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]