I am using a script (YACG) that calls for the following rules: Options -Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .+ ./index.php [L] Code (markup): The problem is, it conflicts with my customized 404 error page. I think the "RewriteRule .+ ./index.php [L]" conflicts with the "Options +Indexes" I'm supposed to add to make the 404 error page work. Is there a way to combine this all so it makes my 404 error page work? I would greatly appreciate someone's help with this. Thanks.
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .+ ./index.php [L] ErrorDocument 404 PAGE </IfModule> Code (markup): Btw, you're using "Options -Indexes" in place of "Options +Indexes" Replace PAGE with your customized 404 page