: Rewrite root folders to a php file and exclude some folders I want to rewrite all the root folders to mysite.com/index.php?folder=^folder using Apache htaccess. However, I don't want the images
I want to rewrite all the root folders to mysite.com/index.php?folder=^folder using Apache htaccess.
However, I don't want the images folder to be rewritten.
Like Facebook.
More posts by @Becky754
1 Comments
Sorted by latest first Latest Oldest Best
I found the solution:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !/subfolder
RewriteRule ^(.*)$ index.php?q= [L,QSA]
Those rules will rewrite all the submits to index.php?q=variable
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.