We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40122
    • 330 Posts
    Hi all,

    I realise this is a super common question and I have tried all the answers people have provided in other posts.

    Friendly URLs just do not work on my site.

    I have tried:

    • Changing ht.access to .htacess
    • Ensuring mod_rewrite is present
    • Ensuring the correct path is present in MODX_BASE_PATH in the confic.inc.php file
    • Ensuring all FURL settings in System Settings are ok and correct
    • Clearing browser and ModX caches

    Clicking the links or typing in the url just redirects to the home page and clicking the preview button just produces a 404.

    Can anyone help me out? (running v2.1.3)
    • What web server are you using? You usually get better answers if you supply your basic platform information:

      Host server (Linux? Windows?)
      Web server (Apache? IIS? nginx?)
      PHP version
      MySQL version (server as well as client)
      MODx version (Evo? Revo? as well as version #)
        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
        • 40122
        • 330 Posts
        Quote from: sottwell at Sep 21, 2012, 04:32 AM
        What web server are you using? You usually get better answers if you supply your basic platform information:

        Host server (Linux? Windows?)
        Web server (Apache? IIS? nginx?)
        PHP version
        MySQL version (server as well as client)
        MODx version (Evo? Revo? as well as version #)

        Hi Susan,

        Linux server,
        Apache
        PHP: 5.3.2.
        Revo 2.1.3

        Ive also attached a screen shot of the System Setup incase I've missed anything (note FURLs is disables in the pic so I can still use the site)

        Cheers
        • Basically all you need to do is rename the ht.access file to .htaccess, and set Use Friendly URLS to "yes" (in that image it's set to "no")

          The only thing to watch out for is if your site is a subdirectory (not a subdomain), such as domain.com/modx/page.html. In that case you need to edit the .htaccess file to have the subdirectory in the "RewriteBase /" line reflect your actual location "RewriteBase /modx"

          The only time this won't work on an Apache server is if mod_rewrite is not enabled or not allowed in the Apache configuration, or .htaccess itself is not allowed.
            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
            • 40122
            • 330 Posts
            Hi Susan,

            yes that is what I did - I hadturned Use Friendly URLS off so the links work. mod_rewrite is also enabled.

            I think I did fix it though - I set FURL Lowercase Alias's to 'No' and now it works....dont really understand why but there we have it....

            Thanks for the help!