We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7484
    • 12 Posts
    Hei there
    I installed/configured modx for a website, in a subfolder. So not in the root of the domain:

    www.domain.com/subfolder

    what should I do, to redirect to the browser to that subfolder?

    many thanks
      • 33070
      • 57 Posts
      create a php page and name it index.php write below code in this page nothing else delete all html. and upload it to your root folder that is www.domain.com

      <?php
      header(’Location: http://www.domain.com/subfolder/’);
      ?>

      cheers
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Are you using friendly URLs? If that is the case, use the .htaccess file, and make sure to edit the RewriteBase line:
        RewriteBase /subfolder
          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