Opencart

Remove Opencart index.php?route=common/home

Some users are unable to completely remove Opencart common/home link despite trying many methods.

If you are experiencing this issue, you can fix this issue by following the steps below which are applicable for all Opencart versions.

Step 1

  • Connect to your server via ftp.
  • Open the /public_html/catalog/controller/startup/seo_url.php file with a code editor.
  • Make the following edit.
  • Save the file and upload it to your server.
  • Refresh the Modification from your Opencart panel.

Find:

return $link;

Add to Before:

$link = str_replace('index.php?route=common/home', '', $link);

Note: The seo_url.php file is located in the /catalog/controller/common/seo_url.php directory in different Opencart versions.

Step 2

Open the .htaccess file located in the root directory of your site with a code editing program.

Make the following edit.

Do not forget to replace the oguzturk.net link with your own website link.

Save the file and upload it to your server.

If you are using a caching plugin, be sure to clear it.

Find:

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] kodunu bulun.

Add To After:

RewriteCond %{QUERY_STRING} ^route=common/home$
RewriteRule ^index\.php$ https://www.oguzturk.net? [R=301,L]

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top