mod_rewrite is on in httpd.conf but produces 404

Discussion in 'Apache' started by skyraider, Jun 9, 2006.

  1. #1
    Hi,

    I have a dedicated server running on CentOS. In my httpd.conf file, mod_rewrite is being correctly loaded:

    
    LoadModule rewrite_module     modules/mod_rewrite.so
    AddModule mod_rewrite.c
    
    Code (markup):
    And here's my .htaccess file for the main directory of the website with the issue:

    
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^(.*)\.html$ index.php?params=$1 [L]
    DirectoryIndex index.php
    
    Code (markup):
    However, whenever I load a page that is being rewritten, I get this error:

    Any ideas?
    Thanks!
     
    skyraider, Jun 9, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^([^.]+)\.html$ index.php?params=$1 [L]
     
    Nintendo, Jun 9, 2006 IP