Prestashop front page error – too many redirects

A very frustrating feature of Prestashop online store package is it being prone to unexplainable endless redirect loop at the shop front right after successfully completing installation. The admin access is working just fine, but as soon as you want to see the store, you get an error.

The actual error message will vary depending upon your browser:

  • Firefox:
    The page isn’t redirecting properly
  • Chrome/Vivaldi:
    This page isn’t working
    redirected you too many times.
    ERR_TOO_MANY_REDIRECTS
  • Brave:
    Attempting to load an URL resulted in too many redirects.

It is also extremely irritating, that the shop you initially set up in your test environment works perfectly, but after setting up the same thing on your production server it enters endless redirect loop right after the setup was supposedly successfully completed.

I am calling it a “feature” and not a “bug”, because I can see that it has been around for many years, but nothing was done to fix it, so it is tempting to assume that it is there by design and is supposed to remain there forever. Also it is extremely hard, nearly impossible to find the solution to this unfortunate phenomenon. There is a lot of various cryptic advices online, but next to nothing that would actually work.

Well. Anyway… The problem obviously is the SSL.

It is very likely that your test environment did not use SSL, while the production server does. In order to break out of the redirect loop, you must enable SSL in Prestashop settings, where it is off by default.

In Prestashop 1.6:

  • Go to Preferences -> General -> Enable SSL, switch it from No to Yes.
  • Click the save icon bottom right to save the setting.
  • Go to Preferences -> General -> Enable SSL on all pages, switch it from No to Yes.
  • Click the save icon bottom right to save the setting.

In Prestashop 1.7:

  • Go to CONFIGURE -> Shop Parameters -> General -> Enable SSL, switch it from No to Yes.
  • Click the save icon bottom right to save the setting.
  • Go to CONFIGURE -> Shop Parameters -> General -> Enable SSL on all pages, switch it from No to Yes.
  • Click the save icon bottom right to save the setting.

That is all.

Thanks to Daria Gavrilova at plesk.


4 Comments on “Prestashop front page error – too many redirects”

  1. ruben says:

    Thank you very much. I had this exact issue and yours is the first comprehensive and correct answer. You sure saved me some headaches! kudo’s

  2. Nick says:

    How to to change to ssl if the backend is also not working ?

    • juanludcb says:

      sometimes Prestashop doesnt let you make changes at backend, then you need to make changes at BBDD. Go to ps_configuration tables and change values from 0 to 1 in PS_SSL_ENABLED and PS_SSL_ENABLED_EVERYWHERE

  3. […] I feel, although I’m not sure, that this is the right place for this section: after everything is setup and just before installing Prestashop. When you start the Prestashop installation process it passes sensitive data around like passwords so I feel it should be set up here. However, I’m going to write a warning here, and then repeat it later: you must enable SSL in Prestashop itself in the admin area or things are going to go really bad. SUPER Special thanks to whoever you are author of this blog. […]


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.