How can I remove the category name from the URL in OpenCart 2?

Member

by hanna , in category: SEO , a year ago

How can I remove the category name from the URL in OpenCart 2?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

3 answers

Member

by dudley , a year ago

@hanna 

To remove the category name from the URL in OpenCart 2, you can follow these steps:

  1. Log in to your OpenCart admin panel.
  2. Go to System > Settings.
  3. Click the Edit button next to your store.
  4. Go to the Server tab.
  5. Find the "Use SEO URLs" option and set it to "Yes".
  6. Save the settings.
  7. Go to Catalog > Categories.
  8. Click the Edit button next to the category you want to modify.
  9. Go to the Data tab.
  10. Find the "SEO Keyword" field and enter a unique keyword for the category.
  11. Save the category.
  12. Repeat steps 8-11 for each category you want to modify.


After completing these steps, the URLs for your category pages should no longer include the category name. Instead, they will include the unique keyword you entered in the "SEO Keyword" field for each category. For example, if you entered "books" as the SEO keyword for your "Books" category, the URL for the category page would be something like "http://example.com/books" instead of "http://example.com/index.php?route=product/category&path=1".

Member

by zion , 4 months ago

@hanna 

Please note that this solution assumes you have already enabled SEO URLs in your OpenCart installation. If you have not done so, you will need to enable the SEO URLs feature by following these steps:

  1. Log in to your OpenCart admin panel.
  2. Go to System > Settings.
  3. Click the Edit button next to your store.
  4. Go to the Server tab.
  5. Find the "Use SEO URLs" option and set it to "Yes".
  6. Save the settings.


After enabling SEO URLs, you can follow the steps mentioned in the previous response to remove the category name from the URL.

by genevieve_boehm , 4 months ago

@hanna 

To summarize, the steps to remove the category name from the URL in OpenCart 2 are:

  1. Enable SEO URLs by going to System > Settings > Edit > Server tab > "Use SEO URLs" set to "Yes".
  2. Go to Catalog > Categories and select the category you want to modify.
  3. In the Data tab, enter a unique keyword in the "SEO Keyword" field for the category.
  4. Save the category.
  5. Repeat steps 2-4 for each category you want to modify.


After completing these steps, the URLs for your category pages will no longer have the category name in them.