Forum Moderators: phranque
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/^\.]+)$ /index.php?id=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/([^/]+)$ /$1?action=$2 [QSA,L] ^([^/^\.]+)$Is this meant to be
^([^/.]+)$? You don't have literal ^ characters in your URLs do you? I'm assuming this is for any request in the form the assets are not loaded and there is no css99 times out of 100, this happens because a page contains relative links that are no longer correct after rewriting. The 100th time it is because requests for assets are themselves getting rewritten.
RewriteRule \.(css|jpg|png|js)$ - [L]giving any extensions that you actually use for supporting files. This will prevent later rewrites firing by accident--and it will save your server from having to do those labor-intensive -f and -d lookups. RewriteRule ^index\.php - [L]