We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35094
    • 25 Posts
    I have another login question.

    Suppose I have a page that is supposed to be password protected- www.mysite.com/protected.html

    Imagine I was to close my current browser window, open it again and call the same adress directly.

    When I do that I am taken to some random page of my site that I do not recognize.

    How would I set the page that would be displayed if the visitor is not logged in?

    Thanks!
      • 35094
      • 25 Posts
      I figured it out-

      the protected pages are invisible to anyone who is not logged in so for them they don’t exist. That’s why I was served an error page.

      To set an error page you go to System> System Settings> Site> Error Page
        • 3749
        • 24,544 Posts
        The error_page is the generic "page not found" page. If you would rather have them sent to the unauthorized_page page, there’s a section here (http://bobsguides.com/revolution-permissions.html) called "Unauthorized Versus Error Page" that explains how to do it. smiley
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting