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

    I am using friendly urls, and want to avoid adding .html as an extension. I do want to use folders and subfolders within URLs. The settings seem to append .html if you allow friendly url paths.

    How do I switch .html extensions off without losing the use of folders?

      • 22303 MODX Staff
      • 10,725 Posts
      This is controlled by Content Types now, which each define their own extension, and whether or not the Resource is marked as a container, in which case it gets the container_suffix. Just edit the HTML extension to not use .html. You can even make it /.
        • 37514
        • 178 Posts
        You can’t leave it blank however? smiley
          • 22303 MODX Staff
          • 10,725 Posts
          Sure you can.
            • 37514
            • 178 Posts
            Thank you - that worked fine
              • 23525
              • 7 Posts
              Reopening... Extension seems required to create a new content type (Using 2.1.3-pl). What the solution to not have .html appended to friendly URLs for HTML content?
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: pjausions at Oct 12, 2011, 09:16 AM
                Reopening... Extension seems required to create a new content type (Using 2.1.3-pl). What the solution to not have .html appended to friendly URLs for HTML content?
                Just add a bogus extension when creating and then edit it afterwards to be empty in the grid. I have opened a bug report for this issue.
                  • 23525
                  • 7 Posts
                  Quote from: opengeek at Oct 12, 2011, 10:29 AM

                  Just add a bogus extension when creating and then edit it afterwards to be empty in the grid. I have opened a bug report for this issue.

                  I can't edit it. The only option in the contextual menu is "Remove Content Type", unless you are referring to a different admin screen than "System" --> "Content Types"?

                  Oh wait... if I double-click on it I can edit the values. hmmm, not obvious. A "Double-click on a value to modify it." just above the grid would be good. Or a "Edit Value" in the contextual menu.
                    • 22448
                    • 241 Posts
                    I know this is an old thread but since i'm having this very problem i didn't want to start a new one.

                    I'm on Revo 2.3.1 and for the life of me can't get rid of .html in the FURL. I've removed .html extension in the data types, cleared cache, even logged out and logged in. Nothing works. Entering url without .html sends me to the "Page not found". Entering with .html opens the page.

                    Is there something else besided content types that need to be changed to get rid of this pesky file extension?
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      I have no problem, emptied the field in the Content Types grid and cleared the cache. Do you have some kind of caching or SEO URLs plugins installed?
                        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