Categrory URL Rewrite Not Working After Upgrading To Magento 2.3.1 from Magento 2.3.0

magento.stackexchange https://magento.stackexchange.com/questions/270547

  •  26-02-2021
  •  | 
  •  

문제

After upgrading to Magento 2.3.1 from 2.3.0, Category URL Rewrite don't seem to be working.

After the update, now when I am creating a new product, the URL that's being generated is something like this: http://example.com/catalog/product/view/id/3708/s/test-product-1/. The correct format should have been http://example.com/mobile-spare-parts/test-product-1/.

My settings are as follows:

  • Configuration >> General >> Web >> Search Engine Optimization >> Use Web Server Rewrites: Yes
  • Configuration >> Catalog >> Search Engine Optimization >> Use Categories Path for Product URLs: Yes
  • Configuration >> Catalog >> Search Engine Optimization >> Use Canonical Link Meta Tag For Categories: No
  • Configuration >> Catalog >> Search Engine Optimization >> Use Canonical Link Meta Tag For Products: Yes

What seems to be working though is, after creating a product, if I go and change the category to some other category, & save the product again, the URL re-write seems to be happening.

Again if I revert back to the original category, even now the URL re-write seems to be working with Clean URL being generated.

도움이 되었습니까?

해결책

Finally after trying a good amount of 'this & that' for the past 3 days, I seem to have found my solution.

There can be numerous reasons for this issue to occurs; but in my case the issue was occurring due to one single reason, and that's mainly the 'Single Store Mode' being turned 'On'. For in-depth solution please visit the following link: https://github.com/magento/magento2/issues/5929#issuecomment-238170690.

Other handy solutions I would recommend:

>> Solution using Extension:

If you are experiencing this issue after Migration from CE 1x to CE 2x, then try this: https://www.ubertheme.com/magento-tutorials/fixing-url-rewrite-after-migrating-magento-2/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top