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

Answered Login Error

    • 3749
    • 24,544 Posts
    Quote from: paullehat at Dec 16, 2015, 12:28 AM
    I'm still in the dark about the non www redirect, once it is implemented you can't login into the admin area of the site. Or, is it just a case of upgrading the site for this to work?

    The non-www redirect should work immediately, though you might have to delete all files in the core/cache directory before it takes full effect. It's also possible that you did in incorrectly.

    Does the front-end work OK with it in effect?
    Do you have friendly URLs on?
      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
      • 51463
      • 8 Posts
      Yes, when I change the htaccess file the front end is fine. Friendly URLs is on. Will attempt this once again following everything you've suggested, then it's on to the upgrade...

      # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
      #RewriteCond %{HTTP_HOST} .
      #RewriteCond %{HTTP_HOST} !^samuelphillips\.co.uk [NC]
      #RewriteRule (.*) http://samuelphillips.co.uk/$1 [R=301,L]

      It's the last three hash tags I'm removing.
      • discuss.answer
        • 3749
        • 24,544 Posts
        I think this may be your problem:


        RewriteCond %{HTTP_HOST} !^samuelphillips\.co.uk [NC]


        You need to escape the second dot:

        RewriteCond %{HTTP_HOST} !^samuelphillips\.co\.uk [NC]
          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
          • 51463
          • 8 Posts
          Done. Thanks Bob for your help and patience. Now to test that upgrade...