Jump to content

Prestashop redirects 301 without www and multilanguage


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


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

The result:

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:

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