We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42603
    • 6 Posts
    Set up site all running well. Switched to FURLs. They work for the website but the manager does not function correctly. There is only a top menu bar.

    Followed the quidance here:
    http://forums.modx.com/index.php?topic=65874.0

    Worked OK until I added
    RewriteCond %{HTTP_HOST} !^www\.domain\.co.uk [NC]
    RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]

    So, problem seems to be with redirection?

    MODX 2.2.7
    PHP Version: 5.4
    MySQL Version: 5
    Apache can't establish the version
    Attached .htaccess (the file is named correctly on the server and working with the two offending lines hashed out)
    and screenshot of Furls set up [ed. note: goginan last edited this post 10 years, 11 months ago.]
      • 42603
      • 6 Posts
      Sorry I can't post the attachments the board will not post to the thread if I attach anything. So .htaccess below

      RewriteEngine On
      RewriteBase /

      RewriteCond %{HTTP_HOST} !^www\.domain\.co.uk [NC]
      RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]

      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] [ed. note: goginan last edited this post 10 years, 11 months ago.]
      • Manager should be excluded from the .htaccess rewrite rules; you don't want any manager URLs to be re-written. Or you can have a .htaccess file in the /manager/ directory with just
        RewriteEngine Off


          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 42603
          • 6 Posts
          Thanks for your reply, I have the .htaccess in the manager folder with RewriteEngine Off.

          I don't know much about mod_rewrite, but found this on a WP forum post.

          This appears to work

          RewriteEngine On
          RewriteBase /

          RewriteCond %{HTTP_HOST} !^www\.mydomain\.co.uk [NC]
          RewriteRule (.*) http://www.mydomain.co.uk/$1 [R=301,L]

          RewriteCond %{REQUEST_URI} !^/(manager).*$

          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.*)$ index.php?q=$1 [L,QSA [ed. note: goginan last edited this post 10 years, 11 months ago.]