Forum Moderators: phranque
Would it be possible to do this /only/ if the directory exists? Reason being: some domains I work on have wildcard DNS so that all subdomains resolve with a status 200 Ok. I'd like to throw a 404 if the subdomain/directory does not exist. I know you can do checks like this:
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d but is it possible to add a conditional that checks in this manner:
RewriteCond %1<>%3 !^(.*)<>\1$ [NC] for an existing directory?
[edited by: jdMorgan at 12:02 am (utc) on Mar. 22, 2005]
[edit reason] Repaired link to original thread. [/edit]