Jump to content

Weird URL generation


Jimbo5

Recommended Posts

I'm having a very strange problem with the store urls.

The fact is that each and every one of the categories is generating an extra url in which they mount another category. Something like this:

https://valledearas.com/es/aceitunas/es/108-vino-dulce
https://valledearas.com/es/aceitunas/es/159-vino-semiseco
https://valledearas.com/es/aceitunas/es/160-vino-semidulce
https://valledearas.com/es/aceitunas/es/184-vino-de-rioja
https://valledearas.com/es/aceitunas/es/185-vino-reserva
https://valledearas.com/es/aceitunas/es/186-vino-de-toro

https://valledearas.com/es/aop-roquefort/es/108-vino-dulce
https://valledearas.com/es/aop-roquefort/es/159-vino-semiseco
https://valledearas.com/es/aop-roquefort/es/160-vino-semidulce
https://valledearas.com/es/aop-roquefort/es/184-vino-de-rioja
https://valledearas.com/es/aop-roquefort/es/185-vino-reserva
https://valledearas.com/es/aop-roquefort/es/186-vino-de-toro

https://valledearas.com/es/aove/es/108-vino-dulce
https://valledearas.com/es/aove/es/159-vino-semiseco
https://valledearas.com/es/aove/es/160-vino-semidulce
https://valledearas.com/es/aove/es/184-vino-de-rioja
https://valledearas.com/es/aove/es/185-vino-reserva
https://valledearas.com/es/aove/es/186-vino-de-toro

etc

And always with those wines as second category

Link to comment
Share on other sites

Hi,

In prestashop BO, check that the "SEO" tab settings are correctly configured in Categories. Check the "Friendly URL" field and ensure it doesn't contain any extra slashes or unexpected characters. Also, check the "Parent category" field to ensure it's set to the correct parent category.

Goto Advanced Parameters -> Performance, Click on the Regenerate .htaccess file button. This will recreate the .htaccess file, which controls URL rewriting.

Open your .htaccess file in the root of your PrestaShop installation.

Ensure there are no duplicate rewrite rules or rules that might be causing this issue.

After making changes, Clear your Prestashop cache.

Try accessing the affected URLs again to see if the issue has been resolved.

Thanks!

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...