The page isn’t redirecting properly in HTTPS



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I use nginx server and Prestashop 1.7.4.4 on a centos7, php5.6 is also installed.
I configure nginx to serve 3 website, one in wordpress, one is a proxy torwards a Tomcat and one is with prestashop.



Everything is fine without HTTPS.
I install certbot for the certificate, and run it.
It did what it has to do with the 3 sites file configuration.
All sites beside prestashop now works fine and if one try to connect in HTTP is redirected to HTTPS.



I install prestashop by command line like this:



 php index_cli.php --name=name --country=it --domain=www.namedoamin.com --db_server=127.0.0.1 --db_name=dbname --db_user=dbuser --db_password=password


without https it works fine, but once I installed the certificate and redirect the traffic from http to https the browser says the infamous:



The page isn’t redirecting properly


There are plenty of info about this issue but none helps me.
This is the block from nginx:



server {
server_name www.name.com;
location /
root /var/www/html/website.com;
index index.php index.html index.htm;

error_page 500 502 503 504 /50x.html;
location = /50x.html
root html;


location ~ .php$
root /var/www/html/website.com;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
include /etc/nginx/fastcgi_params;




listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/www.namesite.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.namesite.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

server
if ($host = www.namesite.com)
return 301 https://$host$request_uri;
# managed by Certbot


server_name www.namesite.com;
listen 80;
return 404; # managed by Certbot



If I go in admin section it works in HTTPS, but if i try to go in settings/general it gives me 404 not found, very weird!
I have no idea what to do anymore I'm desperate, I try all the tricks I red on internet before posting.



UPDATE:
As often as soon as I post few hours later I find a workaround.
Here the problem wat that I could not access the settings/general for whatever reason I don't know. So I went in the DB, table pl_configuration and change to true the fields called PS_SSL_ENABLED_EVERYWHERE and PS_SSL_ENABLED










share|improve this question






























    1















    I use nginx server and Prestashop 1.7.4.4 on a centos7, php5.6 is also installed.
    I configure nginx to serve 3 website, one in wordpress, one is a proxy torwards a Tomcat and one is with prestashop.



    Everything is fine without HTTPS.
    I install certbot for the certificate, and run it.
    It did what it has to do with the 3 sites file configuration.
    All sites beside prestashop now works fine and if one try to connect in HTTP is redirected to HTTPS.



    I install prestashop by command line like this:



     php index_cli.php --name=name --country=it --domain=www.namedoamin.com --db_server=127.0.0.1 --db_name=dbname --db_user=dbuser --db_password=password


    without https it works fine, but once I installed the certificate and redirect the traffic from http to https the browser says the infamous:



    The page isn’t redirecting properly


    There are plenty of info about this issue but none helps me.
    This is the block from nginx:



    server {
    server_name www.name.com;
    location /
    root /var/www/html/website.com;
    index index.php index.html index.htm;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html
    root html;


    location ~ .php$
    root /var/www/html/website.com;
    fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param QUERY_STRING $query_string;
    include /etc/nginx/fastcgi_params;




    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/www.namesite.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/www.namesite.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    server
    if ($host = www.namesite.com)
    return 301 https://$host$request_uri;
    # managed by Certbot


    server_name www.namesite.com;
    listen 80;
    return 404; # managed by Certbot



    If I go in admin section it works in HTTPS, but if i try to go in settings/general it gives me 404 not found, very weird!
    I have no idea what to do anymore I'm desperate, I try all the tricks I red on internet before posting.



    UPDATE:
    As often as soon as I post few hours later I find a workaround.
    Here the problem wat that I could not access the settings/general for whatever reason I don't know. So I went in the DB, table pl_configuration and change to true the fields called PS_SSL_ENABLED_EVERYWHERE and PS_SSL_ENABLED










    share|improve this question


























      1












      1








      1








      I use nginx server and Prestashop 1.7.4.4 on a centos7, php5.6 is also installed.
      I configure nginx to serve 3 website, one in wordpress, one is a proxy torwards a Tomcat and one is with prestashop.



      Everything is fine without HTTPS.
      I install certbot for the certificate, and run it.
      It did what it has to do with the 3 sites file configuration.
      All sites beside prestashop now works fine and if one try to connect in HTTP is redirected to HTTPS.



      I install prestashop by command line like this:



       php index_cli.php --name=name --country=it --domain=www.namedoamin.com --db_server=127.0.0.1 --db_name=dbname --db_user=dbuser --db_password=password


      without https it works fine, but once I installed the certificate and redirect the traffic from http to https the browser says the infamous:



      The page isn’t redirecting properly


      There are plenty of info about this issue but none helps me.
      This is the block from nginx:



      server {
      server_name www.name.com;
      location /
      root /var/www/html/website.com;
      index index.php index.html index.htm;

      error_page 500 502 503 504 /50x.html;
      location = /50x.html
      root html;


      location ~ .php$
      root /var/www/html/website.com;
      fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param QUERY_STRING $query_string;
      include /etc/nginx/fastcgi_params;




      listen 443 ssl; # managed by Certbot
      ssl_certificate /etc/letsencrypt/live/www.namesite.com/fullchain.pem; # managed by Certbot
      ssl_certificate_key /etc/letsencrypt/live/www.namesite.com/privkey.pem; # managed by Certbot
      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

      server
      if ($host = www.namesite.com)
      return 301 https://$host$request_uri;
      # managed by Certbot


      server_name www.namesite.com;
      listen 80;
      return 404; # managed by Certbot



      If I go in admin section it works in HTTPS, but if i try to go in settings/general it gives me 404 not found, very weird!
      I have no idea what to do anymore I'm desperate, I try all the tricks I red on internet before posting.



      UPDATE:
      As often as soon as I post few hours later I find a workaround.
      Here the problem wat that I could not access the settings/general for whatever reason I don't know. So I went in the DB, table pl_configuration and change to true the fields called PS_SSL_ENABLED_EVERYWHERE and PS_SSL_ENABLED










      share|improve this question
















      I use nginx server and Prestashop 1.7.4.4 on a centos7, php5.6 is also installed.
      I configure nginx to serve 3 website, one in wordpress, one is a proxy torwards a Tomcat and one is with prestashop.



      Everything is fine without HTTPS.
      I install certbot for the certificate, and run it.
      It did what it has to do with the 3 sites file configuration.
      All sites beside prestashop now works fine and if one try to connect in HTTP is redirected to HTTPS.



      I install prestashop by command line like this:



       php index_cli.php --name=name --country=it --domain=www.namedoamin.com --db_server=127.0.0.1 --db_name=dbname --db_user=dbuser --db_password=password


      without https it works fine, but once I installed the certificate and redirect the traffic from http to https the browser says the infamous:



      The page isn’t redirecting properly


      There are plenty of info about this issue but none helps me.
      This is the block from nginx:



      server {
      server_name www.name.com;
      location /
      root /var/www/html/website.com;
      index index.php index.html index.htm;

      error_page 500 502 503 504 /50x.html;
      location = /50x.html
      root html;


      location ~ .php$
      root /var/www/html/website.com;
      fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param QUERY_STRING $query_string;
      include /etc/nginx/fastcgi_params;




      listen 443 ssl; # managed by Certbot
      ssl_certificate /etc/letsencrypt/live/www.namesite.com/fullchain.pem; # managed by Certbot
      ssl_certificate_key /etc/letsencrypt/live/www.namesite.com/privkey.pem; # managed by Certbot
      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

      server
      if ($host = www.namesite.com)
      return 301 https://$host$request_uri;
      # managed by Certbot


      server_name www.namesite.com;
      listen 80;
      return 404; # managed by Certbot



      If I go in admin section it works in HTTPS, but if i try to go in settings/general it gives me 404 not found, very weird!
      I have no idea what to do anymore I'm desperate, I try all the tricks I red on internet before posting.



      UPDATE:
      As often as soon as I post few hours later I find a workaround.
      Here the problem wat that I could not access the settings/general for whatever reason I don't know. So I went in the DB, table pl_configuration and change to true the fields called PS_SSL_ENABLED_EVERYWHERE and PS_SSL_ENABLED







      nginx prestashop lets-encrypt prestashop-1.7






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 16:40







      NiBE

















      asked Nov 15 '18 at 16:00









      NiBENiBE

      320321




      320321






















          1 Answer
          1






          active

          oldest

          votes


















          1














          I had the same issue at first but then changing (in the administration interface of) the shop parameters > General by enabling ssl on every pages (first enable ssl, then save, then enable ssl on all pages), plus clearing the cache and then it worked fine.

          In case it helps.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323323%2fthe-page-isn-t-redirecting-properly-in-https%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            I had the same issue at first but then changing (in the administration interface of) the shop parameters > General by enabling ssl on every pages (first enable ssl, then save, then enable ssl on all pages), plus clearing the cache and then it worked fine.

            In case it helps.






            share|improve this answer



























              1














              I had the same issue at first but then changing (in the administration interface of) the shop parameters > General by enabling ssl on every pages (first enable ssl, then save, then enable ssl on all pages), plus clearing the cache and then it worked fine.

              In case it helps.






              share|improve this answer

























                1












                1








                1







                I had the same issue at first but then changing (in the administration interface of) the shop parameters > General by enabling ssl on every pages (first enable ssl, then save, then enable ssl on all pages), plus clearing the cache and then it worked fine.

                In case it helps.






                share|improve this answer













                I had the same issue at first but then changing (in the administration interface of) the shop parameters > General by enabling ssl on every pages (first enable ssl, then save, then enable ssl on all pages), plus clearing the cache and then it worked fine.

                In case it helps.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 8 hours ago









                TritofTritof

                1156




                1156





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53323323%2fthe-page-isn-t-redirecting-properly-in-https%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Use pre created SQLite database for Android project in kotlin

                    Darth Vader #20

                    Ondo