Jump to content

Prestashop bug: lots of 404 errors and fake URLs


nasimparsi

Recommended Posts

Hello friends. I have seen a lot of prestashop 1.7 sites that have this problem! Is this a bug? In Google Webmaster, there are many 404 errors with this structure:

https://domain.ir/categori/ID-

When we add a .html to the end of this URL, the URL will properly redirect to a product. for example:

404 URL:  https://echista.ir/Digital-Timer/459-

add html: https://echista.ir/MP3-module/190-html

But like all products, an incorrect URL is reported as 404 in Google Webmaster. Note 1: These URLs do not exist in the Google map of the site! Note 2: The options in the SEO & URL settings have not changed and are by default (please see the photo) Can you suggest a solution for this problem? Thank

photo_۲۰۲۳-۰۹-۱۹_۲۲-۰۸-۰۶.jpg

U404ntitled.thumb.jpg.0b2e4d61f87f1bf823b3e7ff400d3539.jpg

Link to comment
Share on other sites

The normal product name is {id}-{rewrite}. So when you get just "123-" it means that the rewrite is empty and that usually means that the name is empty.

This most often happens in multi-lingual shops when people forget that they need to fill in the name for each language separately. I don't see a second language in your urls. But even when it is disactivated the fields will still be there in the backoffice.

Another possible explanation is that there is some javascript error in your backoffice or you use some import script that doesn't create a rewrite name. 

https://echista.ir/MP3-module/190-html just uses "html" as a fake product name that automatically redirects.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
On 9/21/2023 at 1:37 PM, musicmaster said:

The normal product name is {id}-{rewrite}. So when you get just "123-" it means that the rewrite is empty and that usually means that the name is empty.

This most often happens in multi-lingual shops when people forget that they need to fill in the name for each language separately. I don't see a second language in your urls. But even when it is disactivated the fields will still be there in the backoffice.

Another possible explanation is that there is some javascript error in your backoffice or you use some import script that doesn't create a rewrite name. 

https://echista.ir/MP3-module/190-html just uses "html" as a fake product name that automatically redirects.

thank you. I will solve my problem. But I noticed one thing: This error 404 is on addresses that have a Persian word in their URL Is it possible to temporarily put a code in the htaccess file to add a .html to the end of all the addresses mentioned?

like this:

https://domain.ir/*/*-

Redirect 301 to:

https://domain.ir/*/*-.html

Link to comment
Share on other sites

It seems like you're encountering a URL structure issue with PrestaShop 1.7. While it may not be a bug, you can try resolving this problem by checking your URL settings in the PrestaShop admin panel. Ensure that your SEO & URL settings are correctly configured and that your product URLs are generated as expected and you are not using any old version. Additionally, you might want to check if there are any third-party modules or customizations affecting URL generation. If the issue persists, consider seeking assistance from PrestaShop forums or support to pinpoint and fix the problem.

Edited by sarahsmith92 (see edit history)
  • Like 1
Link to comment
Share on other sites

On 10/11/2023 at 12:00 AM, sarahsmith92 said:

It seems like you're encountering a URL structure issue with PrestaShop 1.7. While it may not be a bug, you can try resolving this problem by checking your URL settings in the PrestaShop admin panel. Ensure that your SEO & URL settings are correctly configured and that your product URLs are generated as expected and you are not using any old version. Additionally, you might want to check if there are any third-party modules or customizations affecting URL generation. If the issue persists, consider seeking assistance from PrestaShop forums or support to pinpoint and fix the problem.

Hello and thanks This area is currently the SEO and URL section of my site. I think everything is right. what is your opinion?

Untitled.jpg

Link to comment
Share on other sites

  • 3 months 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...