{"id":66853,"date":"2011-12-16T08:30:00","date_gmt":"2011-12-16T13:30:00","guid":{"rendered":"http:\/\/wpmu.org\/?p=66853"},"modified":"2012-11-20T14:57:02","modified_gmt":"2012-11-20T19:57:02","slug":"daily-tip-adding-html-php-url-wordpress-pages","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/daily-tip-adding-html-php-url-wordpress-pages\/","title":{"rendered":"Add .html &#038; .php to the URL of WordPress PAGES (not Posts)"},"content":{"rendered":"<p>Yesterday\u2019s daily tip was about <a href=\"https:\/\/wpmudev.com\/blog\/how-to-add-html-to-the-end-of-a-wordpress-url\/\" target=\"_blank\" rel=\"noopener\">adding .html to the URL of posts<\/a> by tacking .html onto the end of permalinks.<\/p>\n<p>But that little trick of adding .html to permalinks doesn\u2019t affect the PAGES on your site. It affects the posts, but not pages.<\/p>\n<p>The solution for attaching .html to a Page can be accomplished with a plugin &#8212; <a href=\"http:\/\/wordpress.org\/extend\/plugins\/html-on-pages\/\" rel=\"noopener\" target=\"_blank\">.html on PAGES<\/a> is one such plugin.<\/p>\n<p>If you have the need for .php on your Pages, there is also a plugin for that &#8212; <a href=\"http:\/\/wordpress.org\/extend\/plugins\/dot-php-pages\/\" rel=\"noopener\" target=\"_blank\">.php on PAGES.<\/a><\/p>\n<p><a rel=\"lightbox[66853]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/daily-tip-adding-html-php-url-wordpress-pages\/html-php-pages\/\" rel=\"attachment wp-att-66854\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66854\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2011\/12\/html-php-pages.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"625\" height=\"600\" \/><\/a>NOTE: As someone pointed out in the comments on the .html post yesterday, be watchful for any issues that may occur if you are using a caching plugin. Just check things out every now and then to make sure all is working as it should.<\/p>\n<p>Photo: <a href=\"http:\/\/www.bigstockphoto.com\/image-16825076\/stock-photo-www-internet-web-address-concept\" rel=\"noopener\" target=\"_blank\">www internet web address concept<\/a> from BigStock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding .html to Posts is easy, but Pages is a different story.<\/p>\n","protected":false},"author":84404,"featured_media":66855,"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":[4],"tags":[200,655],"tutorials_categories":[],"class_list":["post-66853","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-html","tag-pages"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66853","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=66853"}],"version-history":[{"count":2,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66853\/revisions"}],"predecessor-version":[{"id":198120,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/66853\/revisions\/198120"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/66855"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=66853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=66853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=66853"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=66853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}