We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20102
    • 4 Posts
    Please help, we have tried everything!

    Switched Friendly URL’s to ON, did the rewrite (unless we put it in the wrong place),
    the only page that works is the index. php
    we want our urls to be .html, not ID’s
    all of the links on the index page redirect to the "correct" href, but those pages aren’t there...


    any suggestions?
      • 1932
      • 137 Posts
      It sounds like a webserver configuration problem. Are you running Apache?

      You should have a plain text file named .htaccess in the base MODx directory (which contains index.php, assets, manager, etc) containing a minimum of the following:

      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

        • 20102
        • 4 Posts
        yes, we are running apache


        where do i put that code in the htaccess file?
          • 9053
          • 18 Posts
          You should read FURL - related article on modx wiki and maybe huge FURl topic somethere on this forum. Also make sure that apache is set to allow setttings override by htaccess files.
            "Sorry for my english"
            • 20102
            • 4 Posts
            Apoxx-

            I put that code in the htaccess file, but pages are still not found
              • 1932
              • 137 Posts
              Are you including the dot before htaccess (.htaccess)?

              Take a look at: http://wiki.modxcms.com/index.php/Friendly_URLs_Guide

              Try removing any existing htaccess rules to see if they are conflicting in some way.

              If you are unable to get it working after reading the guide, it is very possible that it’s an Apache configuration issue as Errant mentioned in which case you should contact your hosting provider.