mod_rewrite Strip Query String
Feb 3, 2010 · 1 minute readCategory: mod_rewrite
This is post is now quite old and the the information it contains may be out of date or innacurate.
If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub
# redirect all requests to a subfolder to the home page
# strips query string
RewriteEngine On
RewriteBase /
RewriteRule ^subfolder/.*$ /index.php? [L,R=301]