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?
-
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 /.
Thank you - that worked fine
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?
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?
-
☆ 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?