I want to create a .htaccess file that reads index/somepage as index.php?q=somepage.This is how far I got:Options -MultiViewsRewriteEngine OnRewriteCond %{REQUEST_FILENAME} (gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [OR]RewriteCond %{REQUEST_FILENAME} !-d [OR]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^\.]+)$ $1.php [NC,L]RewriteRule ^(.*)$ index.php?q=$1 [QSA]But this still breaks all the css/img/js/etc, where is my mistake?
Using .htaccess rewrite rule that doesn't run for specific folders and files
htaccess;mod rewrite