Opencart Redirect “index.php?route=common/home” to main page

We thought we would share with you a nice way to clean up your home page URL when using Opencart.

For example the standard Opencart home page is defined as:-

http://www.chameleonwebservices.co.uk/index.php?route=common/home

For SEO reasons and to look nice and clean, it is good to set up a 301 redirect to the main domain name which would make the home:-

http://www.chameleonwebservices.co.uk/

To do this you can use .htacess and simply add the following:-

RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://%{HTTP_HOST}? [R=301,L]