We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3295
    • 19 Posts
    Stupid me, I developed my site in a sub directory locally and when I took it to the live server I also installed and uploaded into a sub-directory. Now, I just want to move the index.php to the main directory but I know I just can’t "put" it there... what would I need to do to get that accomplished?
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Move the entire install from the folder into the root of the site. Login to the manager and change the path in the config (tools > config (file manager and something else tab)) the path only appears twice. Then clear the site cache.

      Others may suggest moving the folder and then run the installer in upgrade mode which also works, but I’ve found moving the site and changing the two paths is all that’s needed... YMMV
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 3295
        • 19 Posts
        Thanks! I will give that a go.


          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Pay attention to your .htaccess file as well; if you have the RewriteBase set to /subdirectory, make sure to change that to just plain /
            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
            • 3295
            • 19 Posts
            It sort of worked. The index.php is not functioning as it should, all the file paths are still set to what they were before with the subdirectory, when I look at all the other pages things are fine, it is just the index.php

            Any ideas?

              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Is your cache cleared?
                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