-
MODX Staff
- 10,725 Posts
It should allow you to change the extension to nothing. How is it preventing this?
Sorry to bump but just wondering is there a definitive solution for this?
(having no suffix)
I’d also like friendly urls with no suffix
-
MODX Staff
- 10,725 Posts
The same as it ever was, remove the extension from the Content Type.
Is the correct/normal way of getting hxxp://domain.com/contact/ to work to change the content type extension .html to /?
It feels wrong to adjust the content type to something it’s not simply because it fixed something else. Does doing this have any side-effects? What relies on these context types?
-
MODX Staff
- 10,725 Posts
You can certainly change the HTML Content Type extension to / if you want this for every Resource in your site, regardless if it acts like a folder. The difference is containers will 301 redirect requests without the container_suffix to the value with the container_suffix; non-containers will not work that way if you change the HTML Content Type extension. Requests to these will have to include the / or users will get a 404.
I cannot remove the extension from the HTML file type.
Revo indicates the file extension field is required
by highlighting it in red and disabling saving.
Is it necessary to hack into the MySQL DB to change this?
Thanks.
-
MODX Staff
- 10,725 Posts
I think that was a bug in an older version of Revolution that has since been addressed.
I've read every comment in this thread and I'm still not sure how to remove suffixes site wide.
When you say "remove the extension from the content type" does that mean delete it from the content types in the Systems Settings?
That seems like a drastic option.
Content Creator and Copywriter