How to Add .html to the End of a WordPress URL

How to Add .html to the End of a WordPress URL

I have a site on another platform that I want to move to WordPress. One of my issues is that all the URLs end in .html, and I’d rather not change that. Keeping everything the same as much as possible reduces the chance of losing any SEO juice I’ve built up.

And so the challenge was to get WordPress URLs to end in .html.

It turns out the answer is very simple—just attach .html to the end of your custom permalink setting.

(Settings >> Permalinks >> Custom Structure)

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

 

NOTE: Typically a custom structure has a trailing / on the end like this:

/%category%/%postname%/

You will want to remove that trailing slash, and just add .html, like this:

/%category%/%postname%.html

Photo: Html from BigStock

Tags: