.html on PAGES plugin

Recently creating a WordPress site and i noticed a little problem, you can add .html in the settings which work fine for POSTS but not pages!

I wrote a small plugin that will add the .html to the end of PAGE urls, it will add the .html to the pages menu and add .html to the page slug when writing a new page.

You will need permalinks activated obviously

Download from the WordPress Plugin Directory, upload to your plugins folder, activate and away you go!

Links return to normal when you deactivate.
Removes trailing slash ( .html/ ) if you use them in permalinks.
Works on subpages.
Tested Wordpress 2.5.1 up to 3.2

Just tested and appears to work fine on a new WordPress 3.2.1 install :)

Why did i want .html extensions on my pages? when converting an old static site to WordPress this allowed me to keep the original URLs (which ended in .html) active

.html on PAGES plugin .html Wordpress permalink on PAGES plugin
Correct Title Case Correct Wordpress Title Case Function
Remove view all posts Strip 'view all posts filed under' from Cat Menu
Secure URL Attacks Help Secure Wordpress From URL Include Attacks
Develop Our Wordpress website development service
Projects Information on a small selection of our projects
Tips Some tips and ideas we would like to share
Wordpress Plugins and Functions for Wordpress Developers

476 Comments

Notary Public Croydon on the 12th of April 2012

Generally .html will not add any profit to gain high rank , but using .html structure in Permalink is useful when you are migrating from blogger to WordPress to retain URL structure like Blogger

Zauberer on the 6th of April 2012

What a great plugin - many thanks for it - I use it on my website and it just works - without thumbling and doing php tricks.

dwu on the 18th of July 2011

thanks for this amazing plug in :)

UK web Design on the 12th of July 2011

Its not working at 3.2 at parent pages. if this plugin is enable so you can't access at your parent pages.

City Deal on the 8th of July 2011

Thanks for this very cool plugin! I loving it!

vakantie on the 5th of July 2011

very nice and useful plugins. i was looking this one. Thanks

creditcard on the 5th of July 2011

This is great news i had some issues with those 'post pages' and now i'm going to try to use t his plugin. i'll let you know if it works

notaris rotterdam on the 5th of July 2011

ah yes i've worked with this plugin already it is great isn't it? well written! thanks

Dennis on the 8th of June 2011

This plugin has been just what I needed, however, one problem I'm having with wordpress image gallery. The wordpress gallery settings has two options. Link image to 'File Image' or display in 'Attachment Page'. The problem appears with the second Attachment page' option. Wordpress is adding the page extension after the .html instead of before. For example: http://mysite.com/sample-page.html/picture-2 instead of http://mysite.com/sample-page/picture-2.html When I try to place the correct second link as a custom link in the picture settings, wordpress just reverts back to the first post link. Please help. thanks

alamedarjd on the 27th of May 2011

Hi there, what about the pages that i don't want it as .html and other pages are .html? is there an option in the page section that you can set to default e.g. domain.com/page-test and to domain.com/page-test2.html? Thanks!!!

Matt Rhys-Davies on the 9th of May 2011

Is adding the extension particularly beneficial to SEO?

swecha on the 6th of May 2011

hey thanks for u r pulgin it works great but the css content is not applicable to it.. when i added to wordpress

Dan Alex Casco on the 5th of May 2011

I am working to move my present website to the wordpress while keeping the old url is a must. This plugin is doing an amazing job for me because I can keep the old url format. I still have problems with pages which belong to a Parent page. I hope I can solve this as well.. Thank you so much for developing such a great plugin. It is working on 3.1.2 version as well.

telecommunication book on the 11th of April 2011

you have a good job, thanks for this plugin.

Denver Web Design on the 10th of April 2011

Awesome plugin! I have an old html site that indexes well, now we do not have to worry about hurting our rankings. Thank you!!!

Download Games on the 7th of April 2011

I am using wordpress 3.1.1 Will it work on wordpress 3.1.1?

SEO Services on the 6th of April 2011

I'm using this with Wordpress 3.1 and when permalinks where "/%category%/%postname%/" it worked, but when the permalinks where "/%category%/%postname%.html" there were 404 errors. I ended up changing the permalinks to "/%category%/%postname%". Thanks for the great plugin :)

rohit on the 29th of March 2011

I have activate your .html on page plugin but it was not work so please inform me, what i have to do for work futher please assist me as soon as thank's in advance

Keith on the 28th of March 2011

getting 404 errors on all pages, any ideas?

Alok Jain on the 15th of March 2011

Hi, I tried this plugin and it works great on pages in wordpress 3.0.4, but not in posts. I tried adding .html in the permalinks, it added .html in posts but showing 404 page for pages. Looks like a weird bug. Please fix.

Clipping Parth on the 14th of March 2011

A great plugin, that's it which I was really searching for. And going to use my new website.

creativeshooter on the 13th of March 2011

I love this plugin.

Article Rewriter on the 9th of March 2011

This worked great! What a life saver. I almost dropped too much $$ on a site that without the .html would have been worthless. woot!

Uwe on the 20th of February 2011

Tried to change the plugin to NOT add .html to pages that came from my forum (SimplePress) but I didn't get it to work :-( Can someone tell me how to change the plugin to NOT append .html to several pages?

nathan on the 13th of February 2011

hi, could you make .html extension on the category of wordpress? thanks

Name on the 12th of February 2011

awesome plugin.thx a lot!

Sale Generators on the 9th of February 2011

how about .html in category page ? i have static website client which he want it to migrate in WP without altering the url, content and design. please help thank you

CedriKo on the 6th of February 2011

Thanks a lot !!! Exactly what I need :)

evden eve nakliyat on the 6th of February 2011

very very thank so much

Marcin on the 5th of February 2011

Hi! Not working in WP 3.0.4. Any help? Please.

Chris on the 5th of February 2011

Great plugin that works straight out of the box and fills a gap in the permalink settings. Use it on every site we build

Zauberkünstler on the 21st of January 2011

Great plugin. Very useful and handy. Thanks. Dean from Switzerland.

Elaine on the 20th of January 2011

Using Wordpress Version 3.0.4 - activating the plugin only gives me a 404 error. Any help on this would be appreciated, would really need this feature in order to recommend wordpress to a client. Thanks!

elmalak on the 14th of January 2011

Hi, I've just installed your plugin and it's working like charm, however, on my site I use different custom post types and those are not getting the .html like pages do. I was wondering if you have a fix for this problem. Many thanks, and I appreciate your great work.

colin on the 13th of January 2011

+1 "Cool feature request: the ability to add the .html extension to SOME pages, but not others. Is this crazy impossible, or require the installation of a whole new kitchen counter? It would be helpful for maintaining the html structure of an existing site between directories (no html extension) and pages within that directory (html extension.)"

Matth on the 11th of January 2011

Cool feature request: the ability to add the .html extension to SOME pages, but not others. Is this crazy impossible, or require the installation of a whole new kitchen counter? It would be helpful for maintaining the html structure of an existing site between directories (no html extension) and pages within that directory (html extension.)

The Blueprint Project on the 6th of January 2011

I've really searched the internet on how to change the permalinks for wordpress pages. And all I've seen are plugins for permalinks on blog posts only. Thanks for this plugin as I can now add my existing pages(Static) that were previously done with .html This pages will now have no negative effect with SEO. Can this be used if I wanted it to be renamed as .aspx? I have several sites that needs to be transitioned to a new server and it has a .aspx extension. I would also like it to be in a page in wordpress and not in post. Thanks. Regards,

Zauberer on the 4th of January 2011

I got the same error (404), but I can't figure out why...

ngupi on the 3rd of January 2011

It's still work with wordpress 3.04 ? This really do boost my seo if i change to .html ? and what logic did the Search engine do with .html ? are they still ancient to not cache other pages non .html ? Sorry for lot of question ... i am still newbie and really not very well in english

rentalcarengine.com on the 2nd of January 2011

I am moving over a static site to wordpress and will try out this pluging. The existing site is on weebly, not sure if this makes a difference or not, but we shall soon see.

Kara on the 27th of December 2010

Thanks a mega ton for this plugin. I was struggling to add .html to my wordpress site which I am converting from a static site like you. Btw it works on the latest WordPress 3.0.3. version. Thanks again

Biker Helmets on the 20th of December 2010

how can i create cutom html file, seem it's not allow me to call my custom html file

Dan on the 17th of December 2010

Is it possible to selectively add the .html extension to some pages. I am transporting a static HTML website into wordpress and I have some pages ending in .htm and some in .html I would like to preserve original naming.

Best Home Remedies on the 7th of December 2010

Thanks for a great plug-in. Just what I had been looking for.

Milos on the 4th of December 2010

Thank you. Great job.

Joff on the 28th of November 2010

Is it possible to add this onto category pages? I've got a number of categories as menu items but they're without the .html extension.

vadim on the 21st of November 2010

Fatal error: Call to a member function using_permalinks() on a non-object in ...wp-content/plugins/html-on-pages/html-on-pages.php on line 25 Wordpress 3.0.1 +google analystic ???

Brian on the 18th of November 2010

Does this also work for .php?

Nashville Web Design Guy on the 16th of November 2010

whoops, a link helps I suppose: http://wordpress.org/extend/plugins/custom-post-permalinks/

Nashville Web Design Guy on the 16th of November 2010

Actually I finally stumbled upon this plugin which automatically adds custom permalink structure fields for your custom post types to the permalink page. A nice compliment to this plugin.

View comments 426 to 377

Nashville Web Design Guy on the 16th of November 2010

Great Plugin. Is there a way to use this on custom post types? i.e. I have a "Player" custom post type and the urls still have the trailing slash / and no .html. I tried to edit the code to change $type from "page" to "players" (my custom post type) but it didn't seem to work. thanks, Shag

john on the 16th of November 2010

Can I somehow remove the dashes between words? IE: instead of testing-testing-testing.html have testingtestingtesting.html?

Techkol on the 30th of October 2010

Its works for me.. but its make my wordpress blog page too slow loading........ so i'm not using this plugin

randall leighton on the 28th of October 2010

I have a client who was using this plugin. I deactivated it but the menu is all junked up, still pointing to pages with .html on them. I did update the permalinks. Do I have to delete all the pages and start over?

Uwe on the 27th of October 2010

I have the same problem as Janan. I need to exclude SimplePress. PLEASE HELP!

Sam on the 21st of October 2010

.html on PAGES is not working on wordpress 3.0. I tried several times. I will be glad if you could tell me how to fix this issue.. Waiting for your reply. Thanks

Rutul on the 21st of October 2010

this is really a good plugin.. it works very well for my site.. Thanks.. :)

Tutorial Writer on the 7th of October 2010

I too am looking for a solution to put .html on both pages and posts for WP 3.0.1.

laarzen on the 5th of October 2010

Great, i was looking for this plugin for my site! Now i need first to convert it into WP :-)

Manchester SEO on the 5th of October 2010

For those who have asked and even the developer of this neat plugin if this practice is beneficial for SEO, we certainly believe so and in fact have proof of this working, we-previously used to develop all our sites structures with seo friendly urls but terminated every url with a trailing slash. e.g. example.com/about/ & example.com/site-map/ Of recent we have seen a shift in Google's preference of .html, .htm, .asp, .php extensions added to url's-we are pretty sure that Google is looking at site structure much more carefully than ever before and is now classifying .fileExtension ending url's as being more permenant, lasting and more authoritive a page than that of the trailing slash /. Convinced?? How about this.... Take a look inside the google index for yourself, google the majority of seo's out there and take a look at the structure they have applied or any other sector whos site are performing well in the index. Although its not all down to pretty looking URLs which get you rankings, it's certainly a helping hand which is within your control, especially if you're viewing this page. Not yet,.... Try this on then...... Still not satisfied, then examine the backlinks of a competitor or a ranked site for competitive keywords. Do so with the yahoo linkdomain: command, this seems to show up the most authoritive links first (we've noticed) the backlink sources listed will tend to be sites which have the backlink droppe on pages with the .filename extension. We hope that this helps. We don't claim to be experts like most other SEO's out there, as we don't work for Google or have access to anyone in the algorithm team, but we are fantastic researchers of the golden algo rule and seem to be doing ok. Just need to practice what we preach after installing this plugin and implementing a lot of 301 redirects!! Thanks.

jose on the 4th of October 2010

Great job. This is just the thing i was looking for my page http://www.pisoscadiz.info

livechat on the 1st of October 2010

I would to like migrate my 8 years old site to wordpress and it was done in php . I am affraid about loosing google ranks because of file extenction . I would be happy if you make modification on your plugin so that I also supports .php extenction along with .html. Thanks

Julio on the 30th of September 2010

Hi, I use this plugin in almost all my sites and works excellent. Thanks for this plugin. Although right now I have a client who wants to have .HTML in only some pages but when I use this plugin, the .html works in the entire site. Is there a way to modify the plugin in order to make it work on some specific pages. Thanks in advance for your help.

mercime on the 28th of September 2010

Thank you for the plugin. It's working well in a WP 3.0.1 multisite subdirectory where I am moving .htm pages section by section into respective subdirectories. Cheers.

AltF4 on the 27th of September 2010

THANK YOU, THANK YOU, THANK YOU!!! I spent two hours trying to figure out what I was doing wrong, as others have said so amazing what just a few lines of code can do.

soly on the 26th of September 2010

Hi guy's , I'm relativly new to all this and would like a little help on how to go about posting links that would direct them to my website (www.solysdeals.com), I've wrote a couple of articles that will as an affiliate direct customers to my site, but I'm a little confused as to how to do it...please help?. Martin

jobawareness on the 23rd of September 2010

If a plugin that can give custom permalinks even for a split post will be a great addition to this plugin.

Joestatic on the 22nd of September 2010

it doesnt work on 3.0.1, Help

Steven on the 12th of September 2010

Hello, This works great but... It also puts .html at the end of the category. eg I have a main category "Widgets" and sub pages "1", "2", "3" If I directly go to widgets it will be widgets.html but if i go to the sub 1 it will display widgets/1.html How can I make it so the category stays as widgets/ and not widgets.html?

Laura on the 31st of August 2010

Awesome! Thanks a lot!

Jewel Beads on the 27th of August 2010

Adam to get both html on pages and post go to permalinks and choose custom and add this: /%postname%.html Don't have to do anything for pages as the wonderful plugin takes care of this.

Niek on the 26th of August 2010

Works perfect on wordpress 3.0.1. And the good thing, it just got me back one of my pages wich is ranked on a keyword in google on place one :) Great work!!

Niek on the 26th of August 2010

Works perfect on wordpress 3.0.1. And the good thing, it just got me back one of my pages wich is ranked on a keyword in google on place one :) Great work!!

Sandy on the 25th of August 2010

Works Great! This is just what I needed. Thank you. To answer an earlier question about changing to .htm, simply edit the plugin code and change all instances of .html to .htm.

Jagannath Hembram on the 23rd of August 2010

I have used this plugin with wordpress 3.0.1. Its worked fine.

Adam The Garden Rotavator Guy on the 18th of August 2010

Hello, I'm using your plugin on my website, this changes my pages to a .html extension perfectly. However when I try and change the permalink structure for my POSTS to .html as I usually would my pages go to a 404 page. Is there anyway to fix this so I can both my pages and posts as .html? Thanks in advance!

david norden secret marketing links on the 16th of August 2010

Need the plugin to create pages ending on htm, not html Can you do this for me? David Norden

html-on-pages on the 14th of August 2010

thank so much. Good job

alvaro on the 8th of August 2010

i have installed your plugin and have actived it,when I am trying to visit my pages link it is giving me a link like the below http://localhost/easternparadise/.html I am not getting the page name in the link because of this it is giving me an error as page not found i have changed the Permalink to %postname% then i am getting the link but it is taking the blog template instead of page template and it is giving me page not found error

sushil on the 1st of August 2010

Hi, thanks great plugins .

Rick Bellefond on the 30th of July 2010

I am in the process of having my website, www.rbdata.com, which was done using FrontPage and has .htm extensions with the exception of my index page which has a .html. It is a good sized website that has about 75 pages. The thing is that I have gotten great seo rankings for ultra competitive google search phrases. I am thinking of having the website redone in either WordPress or Joomla but want the new webpages to EXACTLY match my current webpage including embedded "_" and "-" characters and the .htm extension. Will this plugin do that? Thanks

Carlo on the 21st of July 2010

Hello I tried to use this plugin with WP 3.0 network multisite. I´m getting error 404 on the pages, and the URL you obtain is like : mysite/blog/.html where blob is the page Thanks

Jason on the 4th of July 2010

Update: Actually, if you integrate the Smart Trailing Slash plugin, instead of the previous I mentioned, it is already set up to NOT add a trailing slash to .html pages. So it would add the functionality (adding / to categories and tags) without needing any editing! (I can't find this in the plugin repository, but here is the plugin link)

Jason on the 4th of July 2010

Oh, if you do integrate Permalink trailing slash fixer (I hope so!!), this might be useful: In step 4, he tells how he customizes the Permalink Trailing Slash Fixer plugin to NOT add a slash to .html pages. That way they don't interfere. Thanks. I hope you still maintain this!!

Jason on the 4th of July 2010

You should release an update and merge 'Permalink Trailing Slash Fixer' into your plugin. Why? Everyone who uses your plugin also has their post permalinks set to '.html'. And doing this, Wordpress removes trailing slash from /category/ and /tags/. But the trailing slash should be there--for usability and SEO consistency. I know this isn't a problem with your plugin, but integrating 'permalink trailing slash fixer' which does fix this, would make yours a much more thorough solution! (BTW, I love your plugin. And have used it for years.)

Carlos on the 2nd of July 2010

Is this tested for a 3.0 site network (a 3.0 working like MU)? I´m getting error 404 on the pages on my network.

ttf on the 28th of June 2010

For me it appends .html to pages but not posts!

Guitar Chords on the 27th of June 2010

Yep. I tried it on WP 3.0. Works like a charm.

Ak-gitar on the 25th of June 2010

Very very well!

Sue on the 25th of June 2010

Brilliant, works a treat. thanks!

beegood on the 24th of June 2010

Thank you very much for plugin. This is very usefull for me.

howard on the 16th of June 2010

Hi, to all who have asked about getting the .htm extension, once the plugin is loaded,click EDIT the plugin, and change all instances of html to htm, and then update. I was able to get the htm extension with that simple modification.

howard on the 16th of June 2010

Hi, is there an option to do .htm , as i have a site done with the .htm not the full .html extension, and am converting it to wordpress... thx! Howard

Tom on the 8th of June 2010

THANK YOU for this plugin! I'm working on my first Wordpress driven site and I wanted the URLs to appear as static pages. Thanks to this plugin, I've stopped hitting my head against the Wordpress wall! :)

Maleshia on the 6th of June 2010

Hello! Thank you so much for this plugin! I moved an old website over to wordpress and this saved me a lot of time. I have one problem that I hope you can help me with. I can't add pages without it giving a 404. I want to add a blog and when I do, it adds it correctly but when I try to open the page it gives me the 404 error. PLEASE help!

Altug on the 3rd of June 2010

Hey, great plugin! But just a quick question, I've read through these posts but I'm a little confused. Can somebody clarify once and for all (it doesn't have to be the admin) but if you just transfered a standard html site to wordpress..could you just use "posts" and add .html to the end of your url through the permalinks settings? What would the difference be? Am I missing anything? Thanks Al

Douglas on the 28th of May 2010

I've installed this plugin on at least five Wordpress MU sites, each with several subdomains. It works perfectly on all of them except for one -- liceoff.com, but it works on the subdomains like faq.liceoff.com! liceoff.com is where the bulk of my internet business is conducted, if someone could please figure out why it isn't working at the root of this one site I would appreciate it greatly.

David on the 17th of May 2010

Thanks for this plugin! Can't believe this still doesn't work without a plugin, but cheers for writing it!

Suresh chowhan on the 13th of May 2010

Hi, I am running a site with trailing slash pages, If I enable this plugin to get pages ended with .html. Is there any needed to set 301 redirect for old URLs if yes, then how can I do it, please guide.

mangesh on the 8th of May 2010

nice

View comments 376 to 327

azis on the 5th of May 2010

Very well. I like this Thanks so much!

Cody on the 3rd of May 2010

Using WordPress 3.0 Beta 1 and it seems to work fine on that as well. Thanks for fixing this little annoyance. :)

Rod on the 30th of April 2010

Thank you!!! Finally!!! You are the hero of the month! Now how about one to add categories on pages?? :) :)

Lesley on the 29th of April 2010

This is REALLY useful - i'm just about to convert my site from a static site to wordpress and was concerned about how to keep the pages live (thought I'd have to do a bunch of 301 redirects). So glad I found this before we started!

Kamal Hasa on the 28th of April 2010

All you have to do is just add ".html" to the end of the permalink structure and you will have a .html based permalink.

Im on the 27th of April 2010

Hi Admin, I read through all the comments and I noticed you didn't respond to the questions about using other extensions like .htm Like others who have asked, I will be happy to find out if and how this can be achieved using your plugin. I must nevertheless commend you for your thoughtful contribution to the development of the world wide web in your own little way.

An?l Bilir on the 26th of April 2010

Thank you very much, very good.

jetrent on the 24th of April 2010

Thank you very much. I'm new to Wordpress and didn't even notice the problem till I checked my webmaster tools at Google and it showed some 404 pages because of the lack of the .html. Your plugin fixed that in nothing flat. Thanks.

Tips & Tricks on the 24th of April 2010

Great share! I'm looking on this similar plugin for a long time. I will use it to my new sites now.

Suresh on the 22nd of April 2010

Where is a will, There a is a Plugin

Sam on the 9th of April 2010

Hi, Thanks for the plugin, its great! Is there any way of stopping my blog being - blog.html? (maybe an if statement in plugin code?) Thanks

Andreas on the 7th of April 2010

Hi, And thanks for your work! Great plugin! ...one thing, you got any idea how to solve the pagination problem. For an example, a page that displays post looks good until you go to page 2 ...then the .html ending ends up in the middle of the permalink...like "domain.com/somepage.html/page/2/"

dennyoDz on the 6th of April 2010

This plugin makes very seo friendly web pages ... I've been looking for this plugin, I finally found it here ... thanks for sharing ... I wait for its innovation plugins

Andrea on the 28th of March 2010

Hi! great plug-in! is possible include the plug-in in function.php? and use it whitout installation?

ziv on the 24th of March 2010

Any chance to have a customization? The option that old pages remain/or not remain with the .html AND/OR new pages get/not get the .html

WebGuru at Totally Free Web Site Tools on the 22nd of March 2010

First, awesome plugin. I started using it on all my WordPress installs several months ago. I want to add myself to the list of people with a common request: to have a way to make exceptions to some pages (so other plugins can use a page as a directory, like SPF and WPLD). I also wanted to add, to all those requesting how to get .htm or .php, all you need to do is open the plugin file and replace .html with .htm or .php - I count five places to make that change (AFAIK, that should work, but I didn't test it) Here's another idea: a future version of the plugin could add an administration page and allow a choice of which extension to use (along with the page exceptions request above).

Development Company on the 3rd of March 2010

This is a MUST HAVE wp plugin! Thank you for sharing!

Michael on the 28th of February 2010

Hi, does anyone use this plugin with Wordpress MU? It gives me an error publishing a new page. If I save the page before publishing works. In the Apache debug log I noticed the following error: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: /wp-admin/page.php?action=edit&post=21&message=4

photowork on the 27th of February 2010

Thank you for a great plugin. I’m very appreciate it. Cheers!

Nicole Barnard on the 26th of February 2010

Will this work with archives? I have old html files that I am converting for this emag. I upload them to the server, the create a link on this page. I want to be able to sort them using code by year. I have this in PHP, but not for Word Press. Any ideas, will this plugin work for this purpose?

Naeem on the 24th of February 2010

i am looking for somthing to creat html pages for my 17500 posts

tds on the 15th of February 2010

Thanks very much!! I was annoyed by the same problem, but now it was solved.

Douglas on the 13th of February 2010

>>Subdomains? where do subdomains come into Wordpress??<>“Pro Version” What on earth could be added to make it a pro version? this simply adds .html to the page URLs of a Wordpress install running permalinks<< Right. But in my case it only works on the subdomains.

Yitzhak Karat on the 6th of February 2010

Thanks

media. on the 3rd of February 2010

It's A-mazing! Thanks for nice plugin (works fine on my 2.9.1)

admin on the 3rd of February 2010

Looking at your site, it appears you have not got the correct rewrites in .htaccess follow the instructions at the bottom of the permalinks settings page, see if that helps and htt*p://blog.wetravel.it/2010/01/29/benvenuti-su-blog-we-travel.html is not a page, its a post this is a page h*ttp://blog.wetravel.it/info.html

Hydra on the 3rd of February 2010

Hello, structure that I inseriot is this: /%year%/%monthnum%/%day%/%postname%.html this is my page of test http://blog.wetravel.it/2010/01/29/benvenuti-su-blog-we-travel.html but nothing to do! I have to activate something, how can I tell if it works? Of course I'm also trying to create new articles, but nothing!

admin on the 3rd of February 2010

the permalink structure you posted is invalid, and the url wont load

Hydra on the 3rd of February 2010

Hello I installed on my website wordpress version 2.9.1 After that I downloaded your plugig but I did not understand why it does not work practice I installed from the admin panel of wordpress then I andaot in permalink and I wrote custom outline /% year% /% monthnum% /% day% /% postname%. html then I published a new article But when I go on the blog and open the page ht*tp://blog.mioplog.it/2010/02/03/prova.html unfortunately the page is not visible the only plugin that I installed in addition to yours is All in One SEO Pack What should I change? Hello and thanks

admin on the 29th of January 2010

"Not working. Creates the .html just fine but then every time you click on a link to a page it sends to 404." "Checked the subdomains, appears to be working there, but not at main site. I suspect it’s an .htaccess issue?" Subdomains? where do subdomains come into Wordpress?? Use the .htaccess generated by Wordpress when applying Permalinks. "This sucks. I wish someone serious would take over this plugin and fix problems with it. This is a valuable tool, I can see paying for a pro version that actually works." "This Sucks" Thanks! its comments like that the put people off sharing. "Pro Version" What on earth could be added to make it a pro version? this simply adds .html to the page URLs of a Wordpress install running permalinks

Douglas on the 29th of January 2010

This sucks. I wish someone serious would take over this plugin and fix problems with it. This is a valuable tool, I can see paying for a pro version that actually works.

D. on the 26th of January 2010

hey there, PLEASE HELP ME, if i want convert to HTM extension, how I must do it ? change in the code, the extension HTML to HTM ?, or I must do it from PERMALINKS panel, placing postname.htm ? Please only u can help me, thanks u very much

Douglas on the 20th of January 2010

Checked the subdomains, appears to be working there, but not at main site. I suspect it's an .htaccess issue?

Douglas on the 20th of January 2010

Not working. Creates the .html just fine but then every time you click on a link to a page it sends to 404.

Frank Miller on the 20th of January 2010

Great plugin, I've been looking for a way to solve this problem for awhile now. Thanks.

Yozz on the 17th of January 2010

Thanx for sharing this plugin.

ashy247 on the 16th of January 2010

just upgraded to WP 2.91... Plugin doesn't work now!... 'fatal error' when i try to activate it... help please!

Hellas on the 11th of December 2009

It works great. I just upgraded some old site and instead of redirection I just used this plugin. Changed all .html in to .shtml and it adds .shtml to my all wordpress pages. Excellent job.

scottrockers on the 10th of December 2009

Awesome plugin, thanks for creating it.

Nevis1 on the 6th of December 2009

Worked fine with WP 2.86 Thanks for this.

Neil on the 1st of December 2009

Thanks for this, great plugin. Just installed on 2.8.6 with no problems at all. Is it possible however to remove the parent page in the url so all my pages are www.abc.com/page.html instead of child pages being www.abc.com/parent/child.html

admin on the 24th of November 2009

André, open any page in editor, click update page, this refreshes the permalinks

André on the 24th of November 2009

On my WP 2.8.6 rewriting of page url´s (***.html) works but "Nothing found" is the result content wise. I would also need to remove the toppage within the url for subpages.

Vlad on the 18th of November 2009

thanks man, great great work !!!

Adesh on the 17th of November 2009

Thanks a lot for this Great plugin. Works Flawlessly with 2.8.6 I am planning to feature this on my site. Regards, Adesh

thepadi on the 9th of November 2009

It also can be changed to .htm It's fit perfectly to my permalink. Thanks.

Adi on the 9th of November 2009

It's still work fine on my wordpress 2.5. Great compatibility.

Brian Messenlehner on the 31st of October 2009

Any way to modify to allow exceptions on certain pages like /blog.html to just be /blog?? Thanks!

aman on the 9th of October 2009

Hi , I like your pluggin. But I had different requirement. instead of http://localhost/wp/about/test-page1.html I want http://localhost/wpecommerce/test-page1.html I mean I need domainname/pagename.html How can I get this? thanks

Dinesh on the 22nd of September 2009

Thanks for the great script. afte installing you script in my blog i got the perfect solution. Thanks again

View comments 326 to 277

Rob Barclay on the 15th of September 2009

Man you have saved my life, I had restructured my site and had 5 pages with PR5's and PR4's that without the .html i was not seeing my page rank, I done a 301 redirect and 6 weeks later google still not passed my PR to those pages, now with this plugin I have my PR back on those pages again thank you so much.

FourPx on the 7th of September 2009

Hey, It works great....Trying to find whether there is any plugin for ".php" extension... Let me know if it is there... so that i can use it for my website. Regards, FourPx

Tim on the 3rd of September 2009

Any chance this can be modified to allow customization for EACH page? I want to be able to add .html to the static HTML pages I'm moving to WP, but leave all new pages in WP style.

UpadeshS on the 28th of August 2009

Really good plugin for SEF URL. I think this is one of the most essential plugin for Wordpress. One of my SEO problem solved. Now i am going to work for subdomain plugin.

Udegbunam Chukwudi on the 25th of August 2009

Please I'd like to know how to add the .html to posts in the first place. I actually googled this and landed here. Thanks for the plug-in.

Alex on the 24th of August 2009

Great thanks for plugin!!!

ikp on the 20th of August 2009

I do not know how to add permalinks but would like to know. Currently my site is mysite/blog2/ AND I want to mask the directory and name it something else for example my home page is mysite/blog2 and I would like to be just mysite/a new folder name or something that hides the fact this is a blog

Krystyna on the 12th of August 2009

All my page links are working fine, but in WP > Settings > Reading, I set up a Posts page, and have a static home page. The .html works fine for the static home page, but when on the page that I'm using for posts, when I click on the post title, I get a 404 error, with the resulting url being http://mydomain/.html How to fix this?

Istanto on the 2nd of August 2009

well done, I love this plugins :)

Ajay Jain on the 20th of July 2009

Its a nice plugin I must say this. But it allow only .html extension. What if I want to specify some other extension like .html , .php , .htm or any other extension. Multiple extension handling will find many use to convert the old sites into world press. Actually I have few site which are using .htm , .html and .php page and without converting their file structure I want to convert them into word press system . Flexibility to use any file extension in the page will help a lot indeed to many. I thing using some arrary funtion and allowing manual speficying the file extension in page will solve this problem in the form of some small & useful plugin Can you give your expert comments. Regards, Ajay India

admin on the 15th of July 2009

TJ, try "edit page" to bring up the editor page then "update page", this will refresh the permalinks

TJ on the 15th of July 2009

Plugin works great in 2.8.. BUT I'm having a 404 not found error on my homepage. Any homepage that is set with a .html extension gives a "404" not found error when you navigate to the site root (ex: mysite.com) (mysite.com/index.html works fine). Anyone found a way to fix the homepage problem? Is there a way to simple disable the plugin for one page only so I can set that page as the homepage? Otherwise, very useful plugin. thanks

Milordk on the 7th of July 2009

Hi! Whether there is at this plug-in a compatibility with Wordpress MU (2.7.1)? In advance thanks!

Janan on the 22nd of June 2009

Admin, is there any way to exclude the pages from using .html i am unable to use SimplePress forum with this permalink plugin, as it requres the forum link to be http://www.sitename.com/forum and currently i am having http://www.sitename.com/forum.html help please

admin on the 21st of June 2009

Tested working fine on 2.8

NepaliHotels.com on the 21st of June 2009

How about WordPress 2.8 ?? Not working on 2.8 version :(

Graydon on the 10th of June 2009

Update to my last comment... It's working now. However, the url for my "Posts page" is ending with a trailing slash. Like this: http://www.somedomain.com/articles.html/

Graydon on the 8th of June 2009

I'm using your plugin on a 2.7.1 site and I am running into a problem. In the Settings > Reading settings page, under the "Front page displays:" option. If I change the "Posts page:" to an existing page, that page returns a 404 error. The page works fine until I set this option. Any suggestions? Thanks, Graydon

Karen Marree on the 29th of May 2009

Fantastic plugin solves me half a day of getting it right the manual way. Tweaked it slightly to .htm and it's working fine on WP 2.7.1 thanks!

Krystyna on the 27th of May 2009

Somehow or another, by some miracle, I got it to work. For those having trouble, don't ask me for guidance, because I'm not sure what I did, besides deactivating it and reactivating.

Krystyna on the 26th of May 2009

I added the plugin then uninstalled it because while the pages had the .html appended to them, when I clicked on them in the navbar, I got the following error: Not Found Sorry, but you are looking for something that isn't here. This happened with all the pages, and they all had content on them. I've since deactivated the plugin hoping to find the cause for this.

admin on the 20th of May 2009

@Nipon Ekanarongpun Your pages all appear to have .html, you need to set category with permalinks

Nipon Ekanarongpun on the 20th of May 2009

Why end of my catalog is not show .html , this is my website www.forextradingsystems.biz ?

TechyForever on the 11th of May 2009

Plug-in breakes site, When activated it only add's .html and all the pages break. Any Idea's

Ittai on the 8th of May 2009

Thank you so much! I have searched high and low for plugins that will do this and even installed two plugins that didn't work. @Shaun: thank you so much for your comment, the plugin didn't work for me at first and I was bummed but then I did what you suggested, with the turning off and on, and it worked! WP version 2.7.1

Adrian on the 6th of May 2009

Nice plugin, easy to use, really good job, thanks.

MadMax1404 on the 2nd of May 2009

Great tool! Does somebody know how to remove the parent for pages in Worpress? Example: http://www.yoursite.com/PARENT-PAGE/yourpage.html This drives me nuts. Also I see a lot of guys searching for a solution: http://forum.bytesforall.com/showthread.php?t=1479 http://wordpress.org/support/topic/216679 Any ideas?

lynn on the 30th of April 2009

Thank you for sharing this plugin. Its very useful for beginner like me. Finally you save me...

Markus on the 25th of April 2009

Hi, I`m using your plugin - it`s great. But I also use the dagon design sitemap and this causes your plugin to produce a strange result: when dd-sitemap lists more than 50 links on one site it produces another site and in the original permalink-structure it looks like domain.de/sitemap/2/ but your plugin produces something like domain.de/sitemap.html2/ Any suggestion how to fix this ?

Janan on the 10th of April 2009

Hi there, i am using this plugin on my site(2.7) since last 6 months and i am quite happy with it as i didn't face any problem except "Dagon Design Form Mailer v5.41" but it wasn't a major issue. now i want to add a plugin wp-super-cache to my blog, i didn't give it a try yet on my blog as i was unable to find your .html permalink on their compatible plugin list. i was just wondering if you would please check your Plugin's status with wp-super-cache and add it to their compatible plugin list. regards

Uttam on the 9th of April 2009

@ Mitra, You have to set up your database.

Adam on the 6th of April 2009

awsome, i had been modifying various include files to acheive the same results.. but i would have had to modify those same files with every wordpress update. one issue still exists, that is with split pages if you have a page ie: somepage.html and you use the tag to split it into mulitple pages, the second page link becomes somepage.html/2 argh

Photowork on the 4th of April 2009

Really good and useful plugin, thanks for share.

Shaun on the 31st of March 2009

I installed this on 2.7 today. I had a wierd problem where the plugin caused the page templates to not be found (I think - because it caused 404's in the middle of the page, but loaded the archive.php template [i think]). I unactivated and reactivated the plugin and it started working beautifully. For anybody who is getting 404's on all except for the home page you may want to try this. I just put this on a development site but will rollout to the production site now to see if the same thing happens.

rev on the 6th of March 2009

Thanks a lot. You save me lots of trouble. I'm working with client migrating his retail site to Wordpress without comprising his URL's. I was about to experiment on modrewrite but your solution is better.

AlexRO on the 2nd of March 2009

dude, u are a genius. thank you very much!!!!

Antonio on the 27th of February 2009

Great Plugin, I hated those pages without ".html" at the end. Works great on WP 2.7.1 !!!

Okan on the 27th of February 2009

Hi, thanks for this great script. I make all pages with .html (domain.com/parentpage/subpage.html) but parent pages looking like domain.com/parentpage.html, i want it like domain.com/parentpage/ only for parent pages. How can i manage it using your scripts, Thanks for your time and effort to make this great script again.

Jane on the 22nd of February 2009

Oh that darn Browser Cache!!! Yes, that was the problem. Thank you so much. Now it's working properly. Fabulous little plugin! Thanks!

admin on the 22nd of February 2009

Jane, Ive just tried the plugin with ALL your listed plugins and it works fine for me? I have a sitemap.xml without the .html, i then activate my plugin, visit the homepage to check the the .html has been added, then go to xml sitemap settings, click "manual rebuild", wait a few seconds for it to be rebuilt, then click on sitemap.xml, the sitemap loads in my browser, i then do a ctrl+f5 to refresh thre browser cache and see the new sitemap with the .html, the reverse removes the .html again.

Jane on the 22nd of February 2009

I'm also having the problem of my google XML Sitemap NOT changing to reflect the added .html to my pages. I tried uninstalling the sitemap plugin and deleting the sitemap to force it to be recreated, but I still can't get it to work. I'm running Wordpress 2.7. and I have all these plugins installed: All in One SEO Pack cforms Custom Admin Branding Google Analyticator Google XML Sitemaps pageMash TinyMCE Advanced wp-cache XML Google Maps Any suggestions would be appreciated. I much prefer the natual look of the .html extension, versus Wordpress standard /slash/ treatment.

mitra on the 19th of February 2009

hi iam facing one problem with the permalinks for pages. my current url is http://www.abc.com/page/aboutus and this url i want to change it to http://www.abc.com/aboutus ...so for this the page should be removed ..i have tried with the several plugins .but still its not working .. any other options plz help me out..

Saltbar on the 9th of February 2009

Perfect! Just what I was looking for. I'm using version 2.7 and it worked.

neondragon on the 8th of February 2009

Does anyone know if there's a plugin that makes this work for categories and tags, for example: www.blog.com/category/music.html ?

everysongsaboutagirl.com on the 29th of January 2009

This will be the a saving grace for many people, good job

Rupal on the 28th of January 2009

Wow... great plugin... thank you so much

admin on the 17th of January 2009

Chris, you say both dont work? ive just tried the plugin on 2 different installs downloaded from both the codex and here, both working fine for me. The codex and here are the same files

Chris on the 17th of January 2009

The problem that some people are having with your plugin is that the plugin, when downloaded from the WordPress codex, doesn't work. While the plugin downloaded from this site doesn't work. You might want to look into that.

Graphpaper on the 16th of January 2009

Is there a simple way to modify this plugin to add .html to the end of category pages? I'd even be happy with it adding .html to the end of every url (page/post/category/ect) In order for what I'm after to work, I need to have .html at the end of "every" document. I am trying to setup a system where I write updates to a website in wordpress as posts or pages in an offline environment. Then I want to backup the whole site using wget and publish it online as a static site. (without the cms) Your plugin almost has it working, but there are still a few category pages that I can't seem to get .html onto the end of.

Andre on the 7th of January 2009

I tested in wordpress 2.7 and not work. Can you help me please.

View comments 276 to 227

Avsa on the 5th of January 2009

Great plugin.Thank you

Janan on the 19th of December 2008

Working like a charm on my Site but i have 2 Questions 1) how to redirect a link indexed in search engines to the new permalink? for example: yoursite.com/category/postname/ to yoursite.com/category/postname.html 2) how do we disable it for pages or what should we do with the code so that it starts working with pages as well. because it is not working with a plugin on my site, "Dagon Design Form Mailer v5.41"

admin on the 18th of December 2008

Hi,it works on PAGE links not POST links, set .html in your permalink settings for POSTS HTH

Sid on the 18th of December 2008

I have activated the plugin but i don see .html at the end of the pages..Suppose i click on one of my post links i don get .html at the end of the link .. what could be wrong...??

Eric on the 16th of December 2008

I have the same problem as some others, I need two of five pages to point to .php files, part of a forum linked to my blog. Anyone have an idea how I can work around this, leave my permalinks and pages to wp files alone, then have the two forum pages point to .php files? thanks! eric

admin on the 8th of December 2008

seek, glad its working ok Not sure about your wish, will have a play when i get time

seek on the 8th of December 2008

sorry, my bad - pages with parents works... but, what do you think about my christmas wish ? ;) greets from germany

Brian on the 8th of December 2008

Thanks for your quick reply! I'm relatively new to Wordpress, is there some way to work around the fact that the plugin causes POST category pages to display as ".html/"? As I mentioned above, the only time this is an issue on my 'blog' page, since it's a static page functioning as the 'Index' page normally would. I've done some searching, but since your plugin is simultaneously the solution to one of my problems and the creation of a new one I'm not having much luck. Thanks in advance for any help you can provide!

admin on the 7th of December 2008

seek, cant see why you are getting that problem, i have a site with upto domain.tld/parent/parent/parent/parent/page.html without any problems

seek on the 7th of December 2008

hi, funky plug, works fine but: 1. domain.tld/parent/page.html works fine 2. domain.tld/parent/parent/page.html the .html is missing, why? Question: is it possible to shrink all the parents to one page like: domain.tld/parent-parent-page.html ? thats my wish for christmas ;) rock on. (in the meanwhile i will try to "hack" your plug - if it works, i will send you a copy...)

admin on the 6th of December 2008

Brian, The reason for this happening is because by using a PAGE as a static page for POSTS you are converting your chosen PAGE from a regular PAGE to a POST category page. Hope that helps.

Brian on the 6th of December 2008

I'm using WP 2.6.5. The plugin works great for the most part, but it still allows a slash after my blog page. Some info for better understanding: My permalink structure: /blog/%postname%.html This is so that all blog posts are in a 'blog' directory. For example, a post would appear as: mywebpage.com/blog/here-is-a-post.html All of my other pages appear at the root, i.e.: mywebpage.com/about.html WP points the blog posts to my 'blog' static page (via Settings > Reading > Front Page Displays - then it points to my 'Blog' page). So the blog page is: mywebpage.com/blog.html And using this plugin, even though it makes WP link to: mywebpage.com/blog.html The page still loads as: mywebpage.com/blog.html/ I've even tried using the 'Smart Trailing Slash' plugin, but to no avail. Is there a fix for this? Thanks in advance for any help you can provide - and for the great plugin!

admin on the 3rd of December 2008

Works fine for me on 5 installs of 2.6.5 More details please - Errors displayed etc

WordPress Lounge on the 3rd of December 2008

Doesn't seem to work on 2.6.5.

imagenes hi5 on the 1st of December 2008

Excelent!! works in imágenes para hi5 Thanks

admin on the 24th of November 2008

bruce, yes thats true, Wordpress only adds the trailing slash if you do so in your permalink structure. I use http://www.fastagent.de/res/download/smart-trailing-slash.zip to make sure i have the trailing slash when needed

Bruce on the 24th of November 2008

The problem with adding the .html extension to your posts, and pages, means your categories are not properly terminated, e.g. yoursite.com/category/wordpress whereas it should really be: yoursite.com/category/wordpress/

admin on the 23rd of November 2008

using the Permalink Options and picking a permalink structure like /%postname%.html wont add .html to your pages url's

Ozh on the 23rd of November 2008

What's the point of this plugin? What's the difference with using the Permalink Options and picking a permalink structure like /%postname%.html ?

GJtje on the 23rd of November 2008

I'm using quite a lot of plugins. But they're all needed so I can run my site properly. I think the redirection plugin may interfere? :)

admin on the 22nd of November 2008

GJtje, what other plugins you using? This appends .html to page_structure so something else must be changing page_structure

GJtje on the 22nd of November 2008

Made a typo in last comment... The URL became domain.tld/category/posting-id/name-of-page

GJtje on the 22nd of November 2008

Just tested this plugin, on a WP 2.6.3 install. Plugin doesn't work here also. It even mixes up the links! A link to a page became domain.tld/category/id/post-name/name-of-page So I disabled the plugin awaiting future updates... :)

Rhonda on the 21st of November 2008

I'm new to WP but using it as CSM and everyhing seems to work fine w/o he .html exension. What is the advantage of adding .html extension to WP pages? Thanks

Lars on the 20th of November 2008

Ok.... It donesnt do that on my end. I'll do some more checking and come back to you.

admin on the 20th of November 2008

Lars, ive tested this and it adds .html on the url's in my sitemap.xml, strange When i generate the sitemap without the plugin i get .tld/page then activate the plugin regenerate the sitemap and its .tld/page.html

Lars on the 20th of November 2008

The XML is valid, but the Sitemap plugin dont add .html to the static pages, so my sitemap points to domain.tld/page but the page is now only avalable from domain.tld/page.html When accessing domain.tld/page you get a 404, so searchengines relying on the sitemap will be right confused.

admin on the 20th of November 2008

Lars, i dont see any problems with Google XML Sitemaps plugin, all valid XML ? Please describe the problem

baron on the 20th of November 2008

hi. Thanks for plugin perfect. Regards

Lars on the 20th of November 2008

Excellent plugin. Too bad it dont cooperate with the Google XML Sitemaps plugin. My sitemap.xml file isnt valid if I enable .html to pages :(

admin on the 19th of November 2008

New version now available .html on Pages Plugin for Wordpress 2.7

Chris Flattley on the 18th of November 2008

Hi, I am using Wordpress 2.7 and it doesn't appear to work in this version. Any ideas what to do?

dave on the 14th of November 2008

Works fine for me on 2.6.3 Thanks for sharing

Ian Forest on the 14th of November 2008

Works fine on 2.6.2 but not properly in 2.6.3. The line above the post/page editor where you type the page name does not appear at all.

Dan Poynor on the 5th of November 2008

This has become a standard plugin I use on all my installs. Thanks for sharing! DAN

Real HS on the 3rd of November 2008

Thanks, it works great! @ Paul - u can set .html for posts from wordpress -> settings -> permalinks , just type .html after %postname% like this: /%year%/%monthnum%/%day%/%postname%.html

admin on the 31st of October 2008

The .html appears on pages not posts

paul on the 31st of October 2008

Hi, Please help me. I uploaded the file and added 2 posts and .html is not coming. Waiting for an early reply Thanks, Paul

Mizpah on the 31st of October 2008

Thank you.

kb on the 28th of October 2008

Thanks so much. I use Wordpress as a CMS for small sites so this worked perfectly!

Michael on the 19th of October 2008

Is there any chance you can write this plugin to work for category pages as well? Thanks!

robert on the 2nd of October 2008

how to remove the ending slash? from www. mysite.com/page.html/ to www. mysite.com/page.html

admin on the 14th of September 2008

sorry this is not a forum, but i will try to help if i can. kath, do you have permalinks on??

Kath on the 14th of September 2008

I have waited six days, and still my other comment has not been moderated. This forum does not seem to be active or functional.

Kath on the 8th of September 2008

Hi. I tried this plugin with WP 2.6.1 and created a page. I then tried to look at the page, and was greeted with this message: Forbidden You don't have permission to access /wordpress/.html on this server. Apache/2.0.46 (CentOS) Server at billkath.co.nz Port 80 What is wrong? Isn't the plugin working for my site? I guess I'll have to de-activate it. Cheers, Kath

jason on the 26th of July 2008

oops! my error, it is wp 2.6 ready to activate / deactivate. cool. ok, but how do we get the static home page to have a static url permalink with .html?

jason on the 26th of July 2008

thank you! does someone know how to make it wp 2.6 plugin ready so it shows up in plugin directory and we can activate and deactivate it?

Michael Erb on the 23rd of July 2008

How can I modify the plugin to enable my pages to end in ".php" instead of ".html" ? I'm trying to migrate a site with .php page extensions into a cms wihtout having to do 301 redirects. thanks

Marios Alexandrou on the 22nd of July 2008

It's amazing how just a few lines of code can have such an impact. Thanks for putting this together! I've been scratching my head about what I was doing wrong, but now I know it's just a WordPress "feature" :-)

kingguffster on the 11th of July 2008

Thanks, I was searching forever at the wordpress extend website. It worked like a charm! Thanks a lot

View comments 226 to 177

munsinger on the 2nd of July 2008

very cool. Thank you for providing this. Works great on my 2.5.1 install as well. --doug

Andreas on the 24th of June 2008

Great Plugin! Works like a charm! Is there any way to tweak this plugin to exclude specified pages? ...or the other way around, only work on one or two pages?

Grace on the 16th of June 2008

Seems to work very well on my blog. thanks for sharing.

View comments 223 to 174




Name and email address required, website must be related
08445 008 009