# Pretty URLs Not Working

**URL:** <https://answers.netlify.com/t/pretty-urls-not-working/92975>\
**Category:** Support\
**Tags:** netlify-newbie\
**Created:** [May 23, 2023, 3:57am UTC](https://answers.netlify.com/t/pretty-urls-not-working/92975 "2023-05-23T03:57:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [May 23, 2023, 7:22am UTC](https://answers.netlify.com/t/pretty-urls-not-working/92975/2 "2023-05-23T07:22:28Z")

</div>

@gamwebsites The **Pretty URL’s** feature that is shown under **Asset Optimization** is an **Asset Optimization**.

You will need to ensure it is enabled, and perform a fresh build for it to have any impact.

Please note that it doesn’t perform redirects, it just searches your files to adjust the `href=` values after your build completes.

Additional explanation here:

> [@Setting up netlify.toml for pretty url](https://answers.netlify.com/t/setting-up-netlify-toml-for-pretty-url/84198/8):
>
> I believe part of the confusion here is whether or not the ‘Asset optimization - Pretty URLs’ is supposed to apply any redirection of a users request for a file. My understanding, based on the description written under it, is that it scans and changes your HTML to remove references to URLs ending in .html, so if you had a link of href="/about.html", it would adjust your code to href="/about". What @luisrieke is questioning is that if a user is directly accessing a file with the .html extension…

---

_[View the full topic](https://answers.netlify.com/t/pretty-urls-not-working/92975)._
