To make your RewriteRule strip the query string, simply append a ? to the end of the rewrite path, eg: PLAIN TEXT CODE: # redirect all requests to a subfolder to the home page # strips query string RewriteEngine On RewriteBase / RewriteRule ^subfolder/.*$ /index.php? [L,R=301] More Reading:Magento URL Request RoutingHtaccess Force SSL with Redirect [...]
Archive: htaccess
Posts Tagged ‘htaccess’
February 3, 2010
No Comments
April 28, 2009
2 Comments
Check out this little snippet of htaccess code to force SSL usage. Works regardless of port. PLAIN TEXT CODE: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} More... Top 10 WordPress .htaccess hacks | Omelyn.comx + 3 - Naming a .htaccess File in WindowsMovable Type Monday: Comment via Twitter and .htaccess Hacks | The ...Slackware [...]
Categories:
Archive by date: