You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by jean-christophe hournon <ho...@yahoo.fr> on 2005/01/26 18:23:57 UTC

[users@httpd] Problem with RewriteCond & RewriteRule functionalities.

Hello,

I've got a problem with the RewriteCond & RewriteRule
functionalities and I ask your help...

Here is the behaviour I expect :
- I try to see : http://localhost/test.htm
- if the page 'test.htm' does not exist, I have to be
redirected (in hidden) to 'test_old.htm'
- if the page exists, I have to see the page.

Here is the httpd.conf :

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule /(.*)htm$ /$1_old.html [R]

The current situation is : I am always redirected to
test_old.htm and not in hidden :'(

Is there something wrong in my code ?

Thank you for your help,


	

	
		
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/

---------------------------------------------------------------------
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