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

Member

by hanna , in category: SEO , a month ago

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

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by dudley , 23 days 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".