Quote from: OpenGeek at Nov 08, 2006, 03:41 AM
Not currently; in the future we’ll have it so extension is associated with the content-type being returned, but for now, the only approach I am aware of is to not use the FURL suffix .html at all, and include the extension in your alias for all documents instead.
Yes, that would work. Good idea. Actually, I don’t have too many pages at all really, so it wouldn’t take long to go rename the existing aliases.
For those of you also considering this approach,
here’s a quick and dirty way via SQL to force-append an extension on all of your aliases:
update modx_site_content set alias = concat( alias,'.html' ) where length( alias ) > 0
Simply run this, then remove your Friendly URL extension definition in MODx manager.
NOTE:
Running the SQL above will append extension to
any defined alias. If you
already have aliases with extensions defined, (e.g. style.css) they would then become (e.g. style.css.html) Keep that in mind so you can remember to filter them in the query, or update them manually should they exist.
Thanks, Open.