Archive: mod_rewrite

 

Posts Tagged ‘mod_rewrite’


Magento is a typical PHP Model View Architecture (MVC) system which routes its URLs in ways not particularly different from other PHP MVC Frameworks like codeigniter, symphony etc. But the difference it has with other MVC architecture is that most of its routing directives or configurations are XML based i.e. found in one XML file [...]



 

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