From: Kyle J. McKay Date: Fri, 19 Jul 2013 00:58:50 +0000 (-0700) Subject: htaccess: do not 404 on directories X-Git-Url: https://repo.or.cz/w/girocco.git/commitdiff_plain/97ae7a1a171ed702c33b916599b6cda608cca99a htaccess: do not 404 on directories For the most part, all requests to a server configured solely for Girocco end up pointing to a file -- either a script or an actual file to return. Except for one. The root of the web site will be a directory and needs to be allowed without causing a 404 error. --- diff --git a/htaccess b/htaccess index 051b461..952912c 100644 --- a/htaccess +++ b/htaccess @@ -17,4 +17,5 @@ RewriteCond %{QUERY_STRING} (.*h=.*;)hb=[^;]*(.*) RewriteRule (.*) $1?%1%2 [R=303,NE,L] RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* - [R=404,L]