|
Cookbook /
HtmlUrlsSummary: Add ".html" to the end of page urls
Version: 2006-09-03
Prerequisites: PmWiki 2.1.0
Status: Core
Maintainer: Pm
Categories:PageNaming
Questions answered by this recipe
DescriptionMany PmWiki sites are configured so that urls are shorter and look like they go directly to individual pages (e.g., CleanUrls). Adding the following settings to local/config.php causes PmWiki to add a .html extension to the end of page urls.
NotesFirst, if you're considering adding .html extensions to your urls, we recommend that you not do it. Even the W3C recommends against it [1]: So what should I do? Designing URIs / What to leave out
Still, if you (or your client) really wants to see that ".html" at the end of the urls, then the above recipe lets you do it. All it does is add ".html" to any page urls that PmWiki encounters during page and template processing. The above recipe has been enabled on this page, and you can see that all of the links to other pages have the ".html" extension added to them. CommentsSee AlsoContributors |