{"id":66710,"date":"2011-12-15T08:30:13","date_gmt":"2011-12-15T13:30:13","guid":{"rendered":"http:\/\/wpmu.org\/?p=66710"},"modified":"2013-04-27T16:14:03","modified_gmt":"2013-04-27T20:14:03","slug":"how-to-add-html-to-the-end-of-a-wordpress-url","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/how-to-add-html-to-the-end-of-a-wordpress-url\/","title":{"rendered":"How to Add .html to the End of a WordPress URL"},"content":{"rendered":"<p style=\"text-align: center;\"><a rel=\"lightbox[66710]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/how-to-add-html-to-the-end-of-a-wordpress-url\/html-big-2\/\" rel=\"attachment wp-att-66714\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-66714 aligncenter\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/html-big1.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"504\" height=\"504\" \/><\/a><\/p>\n<p style=\"text-align: left;\">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\u2019d rather not change that. Keeping everything the same as much as possible reduces the chance of losing any SEO juice I\u2019ve built up.<\/p>\n<p>And so the challenge was to get WordPress URLs to end in .html.<\/p>\n<p>It turns out the answer is very simple\u2014just attach .html to the end of your custom permalink setting.<\/p>\n<p><em>(Settings &gt;&gt; Permalinks &gt;&gt; Custom Structure)<\/em><\/p>\n<p style=\"text-align: center;\">\u00a0<a rel=\"lightbox[66710]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/how-to-add-html-to-the-end-of-a-wordpress-url\/html-on-url2\/\" rel=\"attachment wp-att-66726\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66726\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/html-on-url2.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"642\" height=\"563\" \/><\/a><\/p>\n<p><span style=\"color: #0000ff;\"><strong>NOTE:<\/strong><\/span> Typically a custom structure has a trailing \/ on the end like this:<\/p>\n<p>\/%category%\/%postname%\/<\/p>\n<p>You will want to remove that trailing slash, and just add .html, like this:<\/p>\n<p>\/%category%\/%postname%.html<br \/>\n<\/p>\n<p>Photo: <a href=\"http:\/\/www.bigstockphoto.com\/image-5021062\/stock-photo-html\" rel=\"noopener\" target=\"_blank\">Html<\/a> from BigStock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Customize your WordPress URLs (web addresses) to look like regular HTML pages.<\/p>\n","protected":false},"author":84404,"featured_media":66712,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263],"tags":[200],"tutorials_categories":[],"class_list":["post-66710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-html"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=66710"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66710\/revisions"}],"predecessor-version":[{"id":216259,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66710\/revisions\/216259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/66712"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=66710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=66710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=66710"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=66710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}