Yesterday’s daily tip was about adding .html to the URL of posts by tacking .html onto the end of permalinks.
But that little trick of adding .html to permalinks doesn’t affect the PAGES on your site. It affects the posts, but not pages.
The solution for attaching .html to a Page can be accomplished with a plugin — .html on PAGES is one such plugin.
If you have the need for .php on your Pages, there is also a plugin for that — .php on PAGES.
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.
Featured Plugin - WordPress Wiki Plugin
Photo: www internet web address concept from BigStock
But I’m curious; what good is this for? Just wondering, kinda sees useless to me.
Malik – As Hunter mentions below, it’s good for when you’re moving an existing site over to WP and your pages already end in .html or .php.
This isn’t a recommendation to use it on a fresh site. I don’t think it would make any difference. Some people have theories that it might make it seem like a more permanent page, and therefore will be seen by Google as having more evergreen value, but I’m not sure anyone has proven this.
We discussed this a little in the comments from yesterday’s post: http://wpmu.org/how-to-add-html-to-the-end-of-a-wordpress-url/
^seems lol
Totally makes sense if you have existing pages that you want content managed that are not currently. If your site is legacy, with good SEO on certain page names that end in “.html”. Even with permanent redirects, you’ll probably lose juice. Why not simply recreate the page name under WordPress and change the extension to “.html”, preserving all other aspects of the permalink.
Hunter – Yes. This is exactly why I would use it.
Hey there- Like you, I am redoing an old static sight into wordpress and want to keep the old .html url structures for search rank purposes.
The .html on pages plugin does work like a charm. Unfortunately, I can’t figure out how to exclude the “blog” page. I have set the blog functionality to my “blog” page and want the url to read “mysite.com/blog/” (presently “mysite.com/blog.html/”.)
I tried using the code that Jeff pointed to in the previous post (http://webdevstudios.com/2009/11/02/change-wordpress-permalinks-on-pages-to-have-a-html-extension/) but I get an error when I click the blog page link that says the redirect wasn’t working properly.
Wondering if you had a chance to look at it and if you know of any way to simply exclude the .html extension for a single page? If you could help me out, I’d be much obliged.
Cheers.
Hi, I have exactly the same problem as J.Brown. The plugin created .html on each page but my blog looks like this “mysite.com/blog.html/” which is weird. I need to exclude it from being assigned a .html at the end.
Any ideas?
Thanks in advance
Hey Nick-
Here is the answer I found:
http://wordpress.org/extend/plugins/custom-permalinks/
This allows you to set the permalink to whatever you want on any page.
Cheers.
J.
Nice find, J. Thanks.