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?

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
  • Stores->Configuration->General->Web->Search Engine Optimization-> set Use Web Server Rewrites: yes this configuration is already present. – 90RK Jun 18 '18 at 12:30
  • did you do cache flush and reindexing? – Vishnunath Jun 18 '18 at 12:30
  • yes, even also done re-indexing – 90RK Jun 18 '18 at 12:31
  • in mysql delete the table "delete from url_rewrite"; try to reindex. it will work – Vishnunath Jun 18 '18 at 12:35
  • let me try... the solution – 90RK Jun 18 '18 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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