problem with .htaccess and mod_rewrite

Posted by ian on Stack Overflow See other posts from Stack Overflow or by ian
Published on 2011-01-03T05:49:06Z Indexed on 2011/01/03 5:54 UTC
Read the original article Hit count: 185

Filed under:
|

My below .htaccess file should send everything to my index.php page where my framework [Fat Free Frameowkr] handles it.

However if I go to http://www.site.com/ it works. If I go to http://www.site.com/about I get a 404 error.

Any ideas?

# Enable rewrite engine and route requests to framework
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]

# Disable ETags
Header Unset ETag
FileETag none

# Default expires header if none specified (stay in browser cache for 7 days)
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A604800
</IfModule>

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite