Mobile app version of vmapp.org
Login or Join
Radia820

: 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

@Radia820

Posted in: #Htaccess #ModRewrite

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?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Radia820

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme