problem with .htaccess and mod_rewrite
- by ian
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>