Enabling SEO Friendly URLs

Step 1: Enable SEO URLs in OpenCart

Go to System » Server » Use SEO URL’s

Step 2: Rename your .htaccess.txt file to .htaccess by removing the .txt file extension

Use your online file manager, such as the one found in cPanel, or use any FTP software to connect to your site. We provides web hosting plans that provide cPanel, so doing this is really easy. In your OpenCart folder, you should find a file named .htaccess.txt. Rename this file so that it becomes.htaccess.

Step 3: Fill in the SEO Keyword for all the Categories and Products.

Go to Catalog » Products » Data » Seo Keyword. Do take note of the following:

  • SEO Keyword is unique, and no duplicates are allowed.
  • There should be no spaces in your SEO Keyword. You should use an underscore or hyphen between each word.

That’s it! Refresh your OpenCart shopping cart website, and you should you the SEO urls working properly.

Update: If OpenCart is installed in a subfolder, e.g. http://www.yourdomain.com/opencart/, you’ll need to modify the .htaccess file located in your OpenCart folder.

Edit the .htaccess file, and look for the following code section, starting from line 18:

# SEO URL Settings
RewriteEngine On
RewriteBase /opencart/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]

 

Was this answer helpful? 0 Users Found This Useful (5 Votes)