We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41596
    • 2 Posts
    I hope I am posting in the right forum, if I am not I do apologize.
    I am having a heck of a time getting the friendly url's to work. I can get it configured, the index page will load but any link from that page I get a "to many redirects error". Is there a laymen's instruction on how to configure this correctly? I am new to modx and really quite like the program. I really need to get my pages indexed. I have modx in a folder off the root dir. Any help would be greatly appreciated!

    Thanks!
    Richard
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Are you sure that your server is configured to allow rewrites?

      1. Rename the ht.access to .htaccess.

      2. In the Manager's System Settings, set Use Friendly URLs to Yes.

      How do you access your site? Is it domain.com, or is it domain.com/foldername? If it is domain.com/foldername, then you need to edit the .htaccess file to have the RewriteBase line reflect that:

      RewriteBase /foldername


      The reason for the redirects error is that it's not getting the proper URL, so it doesn't find the page. When MODx can't find the page, it redirects to your "error" page using a friendly URL, which itself isn't found, causing MODx to redirect to the "error" page ad infiinitum.
        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
        • 41596
        • 2 Posts
        I just blew away the installation in the /root/modx dir and re-installed in the /root. all is good now!

        Thanks all!