0

Currently, I am working on site, where I am facing following issue related URLs.

when I open a product page, In the browser, following URL gets displayed:

https://zitomer-upgrade.aastaging.us/catalog/product/view/id/5388/s/ot-mens-coarse-and-fine-tooth-comb/category/60/

But, I want the URL in the following format instead of above URL format:

https://zitomer-upgrade.aastaging.us/[category-of-product]/[product-url-key]

Is there any configuration required in the backend (admin site)? or any other way is there?

I am using Magento 2.1.9

I have done following:

Store --> Configuration --> Catalog --> Catalog --> Search Engine Optimization --> Use Categories Path for Product URLs --> 'No'

still it is not working

Can anyone guide on this?

1 Answer 1

0

Magento2 admin Stores->Configuration->General->Web->Search Engine Optimization->

set Use Web Server Rewrites: yes

then flush cache and reindex in your root folder

php bin/magento c:f

php bin/magento indexer:reindex
8
  • Stores->Configuration->General->Web->Search Engine Optimization-> set Use Web Server Rewrites: yes this configuration is already present.
    – 1990rk4
    Commented Jun 18, 2018 at 12:30
  • did you do cache flush and reindexing?
    – Vishnunath
    Commented Jun 18, 2018 at 12:30
  • yes, even also done re-indexing
    – 1990rk4
    Commented Jun 18, 2018 at 12:31
  • in mysql delete the table "delete from url_rewrite"; try to reindex. it will work
    – Vishnunath
    Commented Jun 18, 2018 at 12:35
  • let me try... the solution
    – 1990rk4
    Commented Jun 18, 2018 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.