0

We have problems with page 404 page and our URLs have two formats without knowing why.

See the example below.

www.mywebsite.com/catalog/category/view/s/herboristerie/id/419/ (Okay) www.mywebsite.com/herboristerie.html (404 Not found)

2
  • try to save category again, it will regenerate URL.
    – Pawan
    Oct 8, 2020 at 7:35
  • Yes, the problem is that I have a multilingual site and the URLs work for the other stores except for the main one.
    – Achille
    Oct 8, 2020 at 7:55

1 Answer 1

0

I was facing this issue too.

So I have to take MySQL dump ( for backup purpose ).

Then Truncate url_rewite ( using PHPMyAdmin and also uncheck foreign key while truncate )

Then install this URL Generator using the composer ( read guideline ).

After that upgrade and deploy and then

run the command one by one

php bin/magento regenerate:category:path
php bin/magento regenerate:category:url
php bin/magento regenerate:product:url

Work for me. Hope this might help you. ( Use staging site and take backup )

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.