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

    AMD, you’re a genius, well, almost a genius smiley

    ok. The front end is looking pretty damn good. Friendly URLs are working ok, including pages within containers.

    However, the admin section has gone a little crazy. Some pages look really strange (having one large column instead of the two that Revolution provides) and some pages are just blank (with the static MODx menu at the top).

    But I feel we’re making progress!!!

    The question is, what now?!
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      .htaccess file in the /manager directory.

      Put this line: RewriteEngine Off

      That should do the trick for ya!
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Doesn’t the main .htaccess file have lines to ignore requests to the manager directory?
        # Exclude /assets and /manager directories and images from rewrite rules
        RewriteRule ^(manager|assets)/*$ - [L]
        RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
        
          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
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          Quote from: sottwell at Sep 06, 2010, 12:28 AM

          Doesn’t the main .htaccess file have lines to ignore requests to the manager directory?
          # Exclude /assets and /manager directories and images from rewrite rules
          RewriteRule ^(manager|assets)/*$ - [L]
          RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
          


          Yep, the line does exist (RewriteRule /(?:manager|assets).* $0 [I,L] ), granted it might not being handled properly, so above should do the trick.
            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting
            • 21122
            • 153 Posts
            I’m so close, I can almost smell the Friendly URL loveliness...

            I’ve popped that line into the .htaccess on my manager directory (with ISAPI), but its not made a difference. I’m still getting the home screen of my manager section load up in one column (perhaps not linking the stylesheet properly?) and then when I click some of the other menu options, it just opens a blank screen (with the modx menu at the top).

            Any other suggestions?

              • 21122
              • 153 Posts
              Hmmm...I might just have fixed it myself!

              For Apache, the current Revolution documentation suggests using the following:

              # Friendly URLs Part
              RewriteEngine On
              RewriteBase /
              RewriteCond %{HTTP_HOST} .
              # Force all pages to go to www.mydomain.co.uk for SEO
              RewriteCond %{HTTP_HOST} !^www\.mydomain\.co.uk [NC]
              RewriteRule (.*) http://www.mydomain.co.uk/$1 [R=301,L]
              # Friendly URLs
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
              # Additional Settings Follow
              ExpiresActive On
              ExpiresByType image/gif A2592000
              ExpiresByType image/jpeg A2592000
              ExpiresByType image/png A2592000
              BrowserMatch "MSIE" brokenvary=1
              BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
              BrowserMatch "Opera" !brokenvary
              SetEnvIf brokenvary 1 force-no-vary


              Now, I’m not sure of the purposes of:

              # Additional Settings Follow
              ExpiresActive On
              ExpiresByType image/gif A2592000
              ExpiresByType image/jpeg A2592000
              ExpiresByType image/png A2592000
              BrowserMatch "MSIE" brokenvary=1
              BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
              BrowserMatch "Opera" !brokenvary
              SetEnvIf brokenvary 1 force-no-vary


              or just how important these rules are, but without them, that script works just fine, for both the front end and the back end.

              So in my .htaccess with ISAPI_Rewrite 3, I have:

              # Helicon ISAPI_Rewrite configuration file
              # Version 3.1.0.69
              
              # Friendly URLs Part
              RewriteEngine On
              RewriteBase /
              RewriteCond %{HTTP_HOST} .
              # Force all pages to go to www.mydomain.co.uk for SEO
              RewriteCond %{HTTP_HOST} !^www\.mydomain\.co.uk [NC]
              RewriteRule (.*) http://www.mydomain.co.uk/$1 [R=301,L]
              # Friendly URLs
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


              And obviously where it states ’mydomain’ you need to change that to your own domain.

              But this is whats working for me right now. Hopefully I won’t run into too many issues with it!!

              Thanks everyone for your help, and if you can shed some light on the importance of those other rules, please let me know.

              Thanks
                • 1343 ☆ A M B ☆
                • 2,213 Posts
                Hello,

                Glad to hear you got it working! Thanks for sharing the final code, it’s sure to help others.

                The code you removed addresses how long images are stored on the users computer. If they revisit the site within xxx time period it loads faster as those images are saved.

                It’s suggested, but not required.
                  Patrick | Server Wrangler
                  About Me: Website | Tweets |  MODX Hosting