: Using .htaccess rewrite rule that doesn't run for specific folders and files I want to create a .htaccess file that reads index/somepage as index.php?q=somepage. This is how far I got: Options
I want to create a .htaccess file that reads index/somepage as index.php?q=somepage.
This is how far I got:
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} (gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [OR]
RewriteCond %{REQUEST_FILENAME} !-d [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ .php [NC,L]
RewriteRule ^(.*)$ index.php?q= [QSA]
But this still breaks all the css/img/js/etc, where is my mistake?
More posts by @Radia820
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.