View Single Post

  #4 (permalink)  
Old 05-12-2006
Robert Ionescu
 
Posts: n/a
Default Re: mod_rewrite for users in /

nineworlds@gmail.com wrote:
> RewriteCond /opt/www/dev/homepages%{REQUEST_FILENAME} -f


Ah yes, You're checking only for an existing file. Now when you're
requesting a directory, the condition would fail, of course.

To check also for an existing directory, use

RewriteCond /opt/www/dev/homepages%{REQUEST_FILENAME} -f [OR]
RewriteCond /opt/www/dev/homepages%{REQUEST_FILENAME} -d

--
Robert