# Redirect from .html to / (Vuepress)

**URL:** <https://answers.netlify.com/t/redirect-from-html-to-vuepress/18080>\
**Category:** Support\
**Tags:** redirects\
**Created:** [July 2, 2020, 4:28pm UTC](https://answers.netlify.com/t/redirect-from-html-to-vuepress/18080 "2020-07-02T16:28:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthiks](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/karthiks/32/12832_2.png) [@karthiks](https://answers.netlify.com/u/karthiks)\
**Post date:** [July 2, 2020, 4:28pm UTC](https://answers.netlify.com/t/redirect-from-html-to-vuepress/18080/1 "2020-07-02T16:28:23Z")

</div>

Hey Team,

I have a static website deployed and currently the URLs have ‘.html’ extension in the URL bar. I want to put a redirect from ‘.html’ to ‘’.

I added the redirect in \_redirects and I can see the message on deploy - ‘xx redirect rules successfully processed’. However, the redirect isn’t working.  
Am I missing something here?

The presence of both ‘.html’ and ‘’ is causing the issue of duplicate content for SEO. And I need ‘\<url.html\>’ to be a valid redirect (and not a 404) since I have pages linking to the URL.

The website I am talking about is [freelancer-report.flexiple.com](http://freelancer-report.flexiple.com) and a sample URL is [Freelance Market Statistics & Trends [Updated for 2022]](https://freelancer-report.flexiple.com/2-current-trends.html).

A rule in my \_redirects file looks like this -  
/2-current-trends.html /2-current-trends

Not sure if it is relevant, but since the netlify url is also asked, here you go: [https://wonderful-curie-583b93.netlify.app/](https://wonderful-curie-583b93.netlify.app/)

---

<div class="post-metadata">

**Author:** ![gregraven](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/gregraven/32/23821_2.png) [@gregraven](https://answers.netlify.com/u/gregraven)\
**Post date:** [July 3, 2020, 5:34pm UTC](https://answers.netlify.com/t/redirect-from-html-to-vuepress/18080/2 "2020-07-03T17:34:33Z")

</div>

@karthiks It sounds as though you should have used Asset optimization (in Build & Deploy in your Netlify dashboard) instead of redirects.

This will give you the “pretty” URLs you seem to want.

Then you should hard-code the canonical URL in each file, which will eliminate the “duplicate content” issue.
