httpd-users mailing list archives

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

>>If someone types I would like it to load
>>  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.

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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message