We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14547
    • 58 Posts
    I’m following this tutorial:
    http://www.modxcms.com/moving-sites-to-new-servers.html

    I’m running xampp local on window xp.

    I experience no problems with installing modx locally, but when I rename the ht.access file in the modx root and manager folder to .access, the problems start. I’m getting a 500 server error.

    I don’t have register_globals set to on in the php.ini (To absolutely be sure i ran phpinfo( )). Yep it’s set to off.
    The path to the installation is: /test/index.php
    and that
    s what i have set it to in the /htaccess file:

    RewriteRule ^(.*)$ /test/index.php?q=$1 [L,QSA]
    


    I’m wondering what have i could have overseen, what causes the problem?
      ~~||[ Simplicity is everything ]||~~
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The htaccess file should have a line
      #Options +FollowSymlinks
      RewriteEngine On
      RewriteBase /
      

      That’s where you specify the /test/ part, not in the actual rewrite rule.
        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
        • 14547
        • 58 Posts
        Thank you for the quick reply,

        I still get the error.

        I have tried adding the following in the htaccess:
        #Options +FollowSymlinks
        RewriteEngine On
        RewriteBase /^(.*)$ /test/index.php?q=$1 [L,QSA,NC]
        


        #Options +FollowSymlinks
        RewriteEngine On
        RewriteBase /
        ^(.*)$ /test/index.php?q=$1 [L,QSA,NC]
        


        #Options +FollowSymlinks
        RewriteEngine On
        ^(.*)$ /test/index.php?q=$1 [L,QSA,NC]
        


        Still no result huh
          ~~||[ Simplicity is everything ]||~~
          • 14547
          • 58 Posts
          I have uploaded the currently .htaccess file I’m using. And yes I have restarted the server. Still no result.

          *Note: I have also renamed the .htaccess file in the "xampp/htdocs/test/manager" folder.

          I’ve also read another topic and i’ve uncommented this line in the httpd.conf:
          LoadModule rewrite_module modules/mod_rewrite.so

          And then restarted apache.
          That didn’t help.
            ~~||[ Simplicity is everything ]||~~
            • 27708 MODX Staff
            • 2,502 Posts
            What is the stack of the server you are having problems with? XAMPP on Windows XP? You should not have to mod anything to get the .htaccess file to work.

            One thing I noticed though was that you have:

            #Options +FollowSymlinks
            RewriteEngine On
            RewriteBase /
            RewriteRule ^(.*)$ /test/index.php?q=$1 [L,QSA,NC]
            

            It should be:
            Options +FollowSymlinks
            RewriteEngine On
            RewriteBase /test/
            RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
            

            Note that there shouldn’t be a # in front of the Options +FollowSymlinks
            You should put the dir path into the rewrite base and
            There should not be a slash in front of the index.php?

            Register_Globals is off in default installs of XAMPP. You will typically only find it on in shared servers or on old installs of PHP. Mod_rewrite is on in default installs of XAMPP as well.

            Another thing I noticed were illegal line ending characters (although they could be their from the zip).

            Hope this helps.

            Jay
              Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
              • 27708 MODX Staff
              • 2,502 Posts
              ganeshXL,

              I can’t seem to remember but I was sure it was on. But maybe I turned it on. I don’t remember turning anything on in my XAMPP install until recently but facts and my memory sometimes don’t correspond. laugh

              Cheers,

              Jay
                Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                • 14547
                • 58 Posts
                Quote from: smashingred at Feb 03, 2008, 08:23 PM

                ...
                It should be:
                Options +FollowSymlinks
                RewriteEngine On
                RewriteBase /test/
                RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
                

                Note that there shouldn’t be a # in front of the Options +FollowSymlinks
                You should put the dir path into the rewrite base and
                There should not be a slash in front of the index.php?

                Jay

                Well, that did the job Jay!! And even without uncommenting the Options +FollowSymlinks or restarting apache.
                Just a refresh after the change did the job!

                Another lesson learned. Thanks to all for your support.

                Cheers,

                John
                  ~~||[ Simplicity is everything ]||~~