.htaccess problem

Discussion in 'HTML & Website Design' started by maineyak, May 8, 2008.

  1. #1
    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.
     
    maineyak, May 8, 2008 IP
  2. swordbeta

    swordbeta Banned

    Messages:
    225
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <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
     
    swordbeta, May 8, 2008 IP