We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    Hi there,

    I have just moved a site over to use HTTPS.
    It's all working fine in the front end, so if a user types domain.com it redirects to https://www.domain.com

    but if I type:
    domain.com/manager

    I can log in, but doesn't load the manager correctly.
    When I check the URL, it hasn't redirected me to https://www.domain.com/manager

    if I manually add https://www to the domain, it works fine.

    Any ideas why it's not redirecting to the manager URL?


    Thanks
    Andy

    This question has been answered by paulp. See the first response.

      • 38783
      • 571 Posts
      Could there be a .htaccess file in the Manager folder that is causing this?
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 51020
        • 670 Posts
        Quote from: andytough at Sep 05, 2017, 08:07 AM
        Could there be a .htaccess file in the Manager folder that is causing this?

        Thanks...

        There was an .htaccess file with:
        RewriteEngine Off
        


        Which I thought was the culprit - but I have already removed this, and it's still not working.


        • discuss.answer
          • 22840
          • 1,572 Posts
          I moved one over to https a couple of days ago, try changing the link_tag_scheme system setting from -1 to https and make sure you have deleted everything in the core >> Cache folder and clear all browser cache
            • 22840
            • 1,572 Posts
            Also from the docs, try the following in you manager .htaccess file

            RewriteEngine On
            RewriteBase /
            RewriteCond %{SERVER_PORT} 80
            RewriteRule ^(.*)$ https://yoursite.com/manager/ 


            https://docs.modx.com/revolution/2.x/administering-your-site/security/hardening-modx-revolution
              • 51020
              • 670 Posts
              Quote from: paulp at Sep 05, 2017, 09:02 AM
              Also from the docs, try the following in you manager .htaccess file

              RewriteEngine On
              RewriteBase /
              RewriteCond %{SERVER_PORT} 80
              RewriteRule ^(.*)$ https://yoursite.com/manager/ 


              https://docs.modx.com/revolution/2.x/administering-your-site/security/hardening-modx-revolution

              Quote from: paulp at Sep 05, 2017, 08:54 AM
              I moved one over to https a couple of days ago, try changing the link_tag_scheme system setting from -1 to https and make sure you have deleted everything in the core >> Cache folder and clear all browser cache

              Thanks - I emptied the core/cache and it worked fine - I think it was the .htaccess file in the manager folder that was causing the issue - and although i had deleted it already, it was still cached.

              Thanks!
              Andy
                • 51020
                • 670 Posts
                Quote from: paulp at Sep 05, 2017, 09:02 AM
                Also from the docs, try the following in you manager .htaccess file

                RewriteEngine On
                RewriteBase /
                RewriteCond %{SERVER_PORT} 80
                RewriteRule ^(.*)$ https://yoursite.com/manager/ 


                https://docs.modx.com/revolution/2.x/administering-your-site/security/hardening-modx-revolution

                Out of interest, Is it best practise to HAVE the .htaccess file, but with the rules you pointed out - or is it not necessary to have one at all?

                  • 22840
                  • 1,572 Posts
                  The htaccess file in the manager folder will only affect the manager and sub folders of the manager, so if everything is working without it there is no need for it.

                    • 51020
                    • 670 Posts
                    Quote from: paulp at Sep 05, 2017, 09:24 AM
                    The htaccess file in the manager folder will only affect the manager and sub folders of the manager, so if everything is working without it there is no need for it.


                    Great thanks for clarifying

                    Andy
                      • 43851
                      • 21 Posts
                      I have been struggling with the same issue for days now, trying just about everything that has be suggested without success, then I found the revoSSL 1.0.3-pl extra which seems to have solved the problem entirely. Also had a problem with some pages, not the manager, reverting to http which was a real problem for the website. The revoSSL extra also includes the option to include a tv to force any website page/s to https.