httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-christophe hournon <hour...@yahoo.fr>
Subject RE: [users@httpd] Problem with RewriteCond & RewriteRule functionalities.
Date Thu, 27 Jan 2005 17:25:18 GMT
For me it is the full path to the file :

REQUEST_FILENAME 
The full local filesystem path to the file or script
matching the request. 
(see
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritecond)


 --- PMilanese@nypl.org a écrit : 
> Is Request_Filename the full path to the file, or
> relative? If relative or
> basename, maybe apache can't find it.
> 
> > -----Original Message-----
> > From: hournon@yahoo.fr [mailto:hournon@yahoo.fr]
> > Sent: Wednesday, January 26, 2005 12:24 PM
> > To: users@httpd.apache.org
> > Subject: [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
> 
> 
>
---------------------------------------------------------------------
> 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
> 
>  


	

	
		
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


Mime
View raw message