Configure ugly URLs
Configure ugly URLs.
An ugly URL is a URL that includes a file extension. For example:
https://example.org/section/article.html
In its default configuration, Hugo generates pretty URLs. For example:
https://example.org/section/article/
This is the default configuration:
uglyURLs = false
To generate ugly URLs for the entire site:
uglyURLs = true
To generate ugly URLs for specific sections of your site:
[uglyURLs]
books = true
films = false
Last updated:
March 5, 2025
:
content: Consolidate configuration documentation (b6cae5cbc)
Improve this page