httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Avis ...@membled.com>
Subject [users@httpd] Re: Another mod_rewrite question
Date Thu, 19 Feb 2004 20:36:41 GMT
"Brian V Bonini" <b-bonini@cox.net> writes:

>>If someone types domain.com/page/ I would like it to load
>>domain.com/page.php.  But in the case that page.php does not exist,
>>for it to load page.shtml,

>I don't think the mod has an 'OR' operator. You will proabbly have to
>do it in an external script.

<http://www.engelschall.com/pw/apache/rewriteguide/> has some examples
of redirecting to file X if it exists, but if it does not exist, to Y.
Look at rewritecond, rewriterule and the -f test.

-- 
Ed Avis <ed@membled.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