Archive: mod_rewrite

 

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 [...]



 

Dynamic database driven web sites tend to use various GET variables to define which content to display on that particular page. This is perfectly normal and reasonable. However it does make things a little confusing for search engine spiders as not every GET variable pertains to alternative content. Often GET is used for session, or [...]