Skip to main content
added 207 characters in body
Source Link
Robert
  • 2.2k
  • 3
  • 37
  • 84

I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.

The url is look like this:

https://www.example.com/en/clothes.html/pants.html

and the product

https://www.example.com/en/clothes/pants.html/hot-pants.html

How I can made the url for categories to be like this:

https://www.example.com/en/clothes/pants.html

and the same for product, to remove the html suffix from url too:

https://www.example.com/en/clothes/pants/hot-pants.html

My Catalog SEO configuration is:

enter image description here

If I try to remove the Catalog URL Suffix I have the following error:

Unique constraint violation found

enter image description here

I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.

The url is look like this:

https://www.example.com/en/clothes.html/pants.html

and the product

https://www.example.com/en/clothes/pants.html/hot-pants.html

How I can made the url for categories to be like this:

https://www.example.com/en/clothes/pants.html

and the same for product, to remove the html suffix from url too:

https://www.example.com/en/clothes/pants/hot-pants.html

My Catalog SEO configuration is:

enter image description here

I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.

The url is look like this:

https://www.example.com/en/clothes.html/pants.html

and the product

https://www.example.com/en/clothes/pants.html/hot-pants.html

How I can made the url for categories to be like this:

https://www.example.com/en/clothes/pants.html

and the same for product, to remove the html suffix from url too:

https://www.example.com/en/clothes/pants/hot-pants.html

My Catalog SEO configuration is:

enter image description here

If I try to remove the Catalog URL Suffix I have the following error:

Unique constraint violation found

enter image description here

Source Link
Robert
  • 2.2k
  • 3
  • 37
  • 84

Magento 2 URL issues

I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.

The url is look like this:

https://www.example.com/en/clothes.html/pants.html

and the product

https://www.example.com/en/clothes/pants.html/hot-pants.html

How I can made the url for categories to be like this:

https://www.example.com/en/clothes/pants.html

and the same for product, to remove the html suffix from url too:

https://www.example.com/en/clothes/pants/hot-pants.html

My Catalog SEO configuration is:

enter image description here