We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31205
    • 12 Posts
    In the demo of MODx I saw the URL structure of all pages is .../name-of-page.html, but after installation of MODx on my local machine, all URLs look like .../index.php?id=n. Is it possible to change something in configuration of MODx and have URLs like in demo version, ie ".../page-name.html"

    Thank you,
    Vadim
    • You need to change the name of the ht.access files in your root and your manager folder to .htaccess then turn on friendly urls in the configuration settings tab.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 4273
        • 356 Posts
        when you rename the manger htaccess file you can’t access the manager it makes it dead in the water
          SMF Bookmark Mod - check it out
          http://mods.simplemachines.org/index.php?mod=350
        • You need mod_rewrite support in your apache configuration to use .htaccess
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 4273
            • 356 Posts
            i already have mod_rewrite enabled and can use htacess buty when you enable the one in manager it locks up the manager at least that’s been my experience not sure how the friendly URL is suppose to work, i tried it and although it does reset the pages to page.html when you click on it its a page not found error
              SMF Bookmark Mod - check it out
              http://mods.simplemachines.org/index.php?mod=350
              • 18397
              • 3,250 Posts
              MARKSVIRTUALDESK Reply #6, 18 years ago
              Did you change BOTH ht.access files to .htaccess? One in the root and one in the manager directory?
                • 4273
                • 356 Posts
                yes but like I said when you change the one in the manager it locks up the manager where it can no longer be accessed
                  SMF Bookmark Mod - check it out
                  http://mods.simplemachines.org/index.php?mod=350
                  • 4018
                  • 1,131 Posts
                  That’s odd. The only thing that the htaccess file in the manager directory does is turn off mod_rewrite. It shouldn’t cause a manager lockup. There’s definitely more than meets the eye here. Check your htaccess file in the root of the site. The only options that should be on and uncommented are the RewriteEngine, RewriteCond, and RewriteRule lines...everything else like the zlib.output_compression and the stuff at the bottom dealing with browser issues should be left commented. If there are any of these that are not commented, comment them and see if that does the trick. If not...back to the drawing board!

                  If possible, if you’re still having problems, create a PHP file in the root of your site called phpinfo.php and have the following in it:

                  <?php
                  phpinfo();
                  ?>
                  


                  Granted, the same could be done just by visiting the manager...but this is easier. Now try viewing this file in the browser to make sure it works:

                  http://www.yoursite.com/phpinfo.php

                  If it does, send me your URL so I can look at the configuration of PHP on your server. There might be a problem with it that’s causing your site to go nuts. wink

                  Jeff
                    Jeff Whitfield

                    "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                    • 4273
                    • 356 Posts
                    it’s fine now, think it was a browser fluke sometimes things go bump in the night, i got the friendly URLs working smiley
                      SMF Bookmark Mod - check it out
                      http://mods.simplemachines.org/index.php?mod=350