Jump to content

Prestashop redirects 301 without www and multilanguage


pattila01

Recommended Posts

Hello friends,

one of my clients has a SEO expert, who checked her site. He says the main redirects are not good, we have to fix it.

I've installed a test 1.7.6.8 with the same settings: simple domain without www, SSL (https) and multilanguage, after that I checked it in an online https status checker.

Test domain: https://1768.presta-shop.hu/hu/
Checker: https://httpstatus.io/

Urls to check in this case:

http://1768.presta-shop.hu
https://1768.presta-shop.hu
http://www.1768.presta-shop.hu
https://www.1768.presta-shop.hu

So we have a non-ssl url, an ssl url, a non-ssl url with www, and an ssl url with www.

The result:
image.thumb.png.48d22f19b73179c598f48241f8ef822a.png

There are multiple redirects because a non-ssl and the language (because in this case the final url is https://1768.presta-shop.hu/hu/ or https://1768.presta-shop.hu/gb/ or other, it depends on your language).

The SEO experts says it's bad, we have to fix it: every url version has to redirect to the final url immediately.

I checked the /classes/controller/FrontController.php's sslRedirection and canonicalRedirection functions, but I have no good result yet. Somebody says the apache redirect can help:
https://www.ionos.com/digitalguide/server/configuration/apache-redirects/

But I am not sure.

What do you think about this problem? I checked other Prestashops with multilanguage, but the result was the same. 

Link to comment
Share on other sites

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...