We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36968
    • 3 Posts
    Aaron Brewer Reply #1, 15 years ago
    Dear MODX Community,

    How in the world am I supposed to get "Documents" to display as .html or .php files in the Address Bar? Hence the Browser Bar? I renamed the ht.access file to .htaccess I enabled Friendly Urls, and when I change the alias for the document.

    A. It doesn't show as if it has been changed... and

    B. The path to the URL of the alias does not work either, 404 baby!

    Any ideas? I am a newbie, I will many more questions to come but, I am using the latest version of MODX Revolution and just need some help.

    I want to display my pages as...

    index.html
    about.html
    etc, etc.

    Thank you very much!
    Aaron
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Hello,

      Did you turn on Friendly URLs in the system settings as well?
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 3749
        • 24,544 Posts
        And don't forget to clear the site cache.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 33968
          • 863 Posts
          Is your MODX install in a subfolder? If it's not in the root you will need to adjust the .htaccess file to get furls working:
          RewriteBase /foldername
          
            • 36968
            • 3 Posts
            Aaron Brewer Reply #5, 15 years ago
            AMDBuilder,

            Hello,

            Yes I did turn on Friendly URLS in the System Settings.

            BobRay,

            Alrighty, cleared.

            Lucas,

            I did install it in a sub-folder and has to change the RewriteBase, thank you very much that fixed a portion of the issue.

            The only thing I have left to figure out is how to force display the page name and extension in the Address Bar/URL/Browser Bar.

            Any ideas on that?

            Thank you all three of you very much! Very helpful!!! :-D

              • 3749
              • 24,544 Posts
              Make sure you have this in the <head> section of all templates:

              <base href =  "[[++site_url]]" />


              Also, manually delete all files in the core/cache directory.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 36968
                • 3 Posts
                Aaron Brewer Reply #7, 15 years ago
                BobRay,

                I do have that tag within the <head></head> tags, but I will manually delete all the files in the core/cache directories.

                I just cached it, but it still doesn't show the document name in the address bar.

                Thank you!
                  • 18373 ☆ A M B ☆
                  • 3,141 Posts
                  Mark Hamstra Reply #8, 15 years ago
                  Any MODX-generated links (ie [[~5]] for page 5) will use the friendly url syntax. The non-furl way (index.php?id=5) will still work, though that seems to be (getting) fixed for 2.2 with optional strict SEO URL handling.
                    Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

                    Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
                    • 3749
                    • 24,544 Posts
                    Make sure every resource has an alias.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting