How to enable SEO-friendly URLs in OpenCart?

Member

by delpha , in category: SEO , a day ago

How to enable SEO-friendly URLs in OpenCart?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by dortha , 11 hours ago

@delpha 

Enabling SEO-friendly URLs in OpenCart can help improve your store's visibility in search engine results. Here’s how you can do it:

  1. Rename the htaccess.txt File: Go to the root directory of your OpenCart installation through FTP or your hosting file manager. Rename the file htaccess.txt to .htaccess.
  2. Enable SEO URLs in OpenCart Settings: Log in to your OpenCart admin panel. Navigate to System > Settings. Click on Edit next to the store you want to modify. Go to the Server tab. Set the option Use SEO URLs to Yes. Save your settings.
  3. Modify Your Apache Configuration (If Required): Ensure that the Apache server has the mod_rewrite module enabled because it’s necessary for the .htaccess file rules. The AllowOverride directive in your Apache config should allow .htaccess to be used.
  4. Set SEO Keywords for Individual Items: Go to Catalog > Products. Edit a product for which you want to enable an SEO URL. Under the Data tab, find the SEO Keyword field and enter a unique, descriptive keyword (e.g., "blue-t-shirt") without spaces, special characters, or capital letters. Use dashes "-" instead of spaces. Repeat this for categories and information pages as needed under Catalog > Categories and Catalog > Information.
  5. Test Your URLs: After setting this up, go to the frontend of your site and try to access a product or category to ensure the URL appears in an SEO-friendly format, like www.yourstore.com/product-name.


If you encounter issues, clear the Modification cache in Extensions > Modifications and the Theme cache by going to Dashboard and clicking on the refresh icon in the Developers section.


Keep in mind that different versions of OpenCart may have slight variations in these steps, and the SEO URL functionality might also depend on any extensions or themes you have installed.