Magento SEO - Sub Category url's without parent categories

Magento SEO - Sub Category url's without parent categories

September 3, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento SEO - Sub Category url's without parent categories

Achieving Magento SEO: Sub-Category URLs Without Parent Category

In Magento 1.8, the default URL structure includes the parent category as part of the sub-category’s URL. While this is helpful for navigation within your store, it may not always be ideal from an SEO perspective, especially if you want to make your URLs more concise and keyword-rich.

Let’s explore how you can achieve sub-category URLs that don’t include the parent category or root category in their path.

Understanding the Default URL Structure

By default, Magento uses a hierarchical structure for its category URLs. For example:

  • Root Category: Appreal
    • Sub-Category: Women
      • Sub-Sub-Category: Tops
      • Sub-Sub-Category: Bottoms

The resulting URLs would look like this:

  • Appreals.html
  • Appreals/womens.html
  • Appreals/womens/tops.html
  • Appreals/womens/bottoms.html

How to Change the URL Structure

Unfortunately, Magento 1.8 doesn’t provide a direct setting to change this behavior out-of-the-box. However, you can achieve your desired URL structure by following these steps:

Option 1: Use Canonical URLs and Redirects

  1. Set canonical URLs for each sub-category page using the “URL Rewrite Management” section in the Magento admin interface.

  2. Create redirects from the old URLs to the new shorter URLs. You can do this manually or use a third-party extension like “Magento 2 SEO Suite” which provides redirect management functionality.

Option 2: Use Custom Routing

For more advanced users, you can create custom routing rules in your Magento application using the app/code/core/Mage/Core/Controller/Router.php file. However, this approach requires a good understanding of Magento’s routing system and should be done with caution as it may impact other parts of your store.

Option 3: Upgrade to Magento 2

If you’re open to a platform upgrade, Magento 2 provides more flexibility in configuring category URLs right from the admin interface. You can set the URL key for each category without including the parent category name.

Best Practices for Sub-Category SEO URLs

  • Keep your URLs short and descriptive. This helps with both user experience and search engine optimization.
  • Use hyphens (-) to separate words in your URLs. Avoid using underscores (_), spaces, or special characters.
  • Include your primary keywords in the URL, but avoid keyword stuffing.

Conclusion

While Magento 1.8 doesn’t offer a straightforward setting for this specific requirement, you have several workarounds available. The method you choose will depend on your technical comfort level and the resources available to you.

If you’re looking for more advanced SEO solutions or considering an upgrade to a newer platform like Magento 2, I highly recommend exploring the SEO services offered by Laravel Company. Our team of experienced developers can help you optimize your store’s structure and boost your organic traffic.

Remember, SEO is an ongoing process that requires regular monitoring and optimization. Keep testing different approaches to find what works best for your unique business needs.

Happy optimizing!

Magento 2 Magento 1 Catalog Extensions

Our network