Skip to main content

By default, in OpenCart e-shops, when you visit the homepage, /index.php?route=common/home is appended to your domain name.
One way to remove it is to add the following lines to the .htaccess file at your server’s root:

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

Leave a Reply