WordPress.org

Ready to get started?Download WordPress

Plugin Reviews

.html on PAGES

Appends .html to the URL of PAGES when using permalinks

9 reviews
Average Rating
4 stars
4.9 out of 5 stars
You are currently viewing the reviews that provided a rating of 5 stars. Click here to see all reviews.
5 stars
Seems perfect
By , for WP 3.8.1

Works in 3.8.1. No need to use a custom structure and .html.
Just use Post Name.

5 stars
Brilliant! (and it works perfect in 3.8.1)
By , for WP 3.8.1

I have moved old sites to WP before, spending a lot of time on writing redirects. Not anymore! It's amazingly simple now, I installed this plugin and lo and behold, the .html urls work perfect on the new WP version of my site. Big thank you to the developer!

5 stars
Zaebis'
By , for WP 3.6.1

Work! Good

5 stars
working perfect
By , for WP 3.5.2

It's working perfect...

Superb..

5 stars
Very simple .html solution for pages
By , for WP 3.5.1

Just make sure you've got the "custom structure" permalink with .html at the end, then enable the plugin and it just gets on with it. Even adds the .html to the page names.

Without this, posts get the .html extension via permalinks but pages don't, but this neatly solves it.

It is possible to use .htm but requires the extension code be tweaked.

5 stars
This plugin actually works!
By , for WP 3.5

I saw the "This plugin hasn't been updated in over 2 years" message on this plugin's page & was not willing to install & test, but I am so glad I did, this plugin works in WP version 3.5

5 stars
plugin works awesome even still with wp 3.5.1
By , for WP 3.5

just thought i should say thanks for this plugin i noticed on your official site the last test was at

Tested WordPress 2.5.1 up to 3.2

So i thought i would leave a message saying cheers for the plugin for 1 and second it's working with WordPress version 3.5.1

Thanks again, i didn't really need this plugin but im just trying something new and seeing if it makes a difference lol i highly doubt it will but ya never know.

5 stars
Just works!
By , for WP 3.5

Just works, despite the plugin has not been updated for 2 years.

5 stars
Works like a charm
By , for WP 3.5

WordPress 3.5 and .html on PAGES 1.1 worked like a charm for me. I tested in debug mode and didn't get a single warning—hence the 5 stars.

As a side note: I needed to hack the plugin to output the “.htm” suffix instead of “.html”. Having to do so anyway, I added a (hopefully) unique prefix to all functions and removed the closing PHP tag (?>) at the end of the file for security reasons.

Here's my final plugin code:

add_action( 'init', 'pageshtm_html_page_permalink', -1 );
register_activation_hook( __FILE__, 'pageshtm_active' );
register_deactivation_hook( __FILE__, 'pageshtm_deactive' );

function pageshtm_html_page_permalink() {
	global $wp_rewrite;
	if ( ! strpos( $wp_rewrite->get_page_permastruct(), '.htm' ) )
		$wp_rewrite->page_structure = $wp_rewrite->page_structure . '.htm';
}
add_filter( 'user_trailingslashit', 'pageshtm_no_page_slash', 66, 2 );

function pageshtm_no_page_slash( $string, $type ) {
	global $wp_rewrite;
	if ( $wp_rewrite->using_permalinks() && $wp_rewrite->use_trailing_slashes==true && $type == 'page' )
		return untrailingslashit( $string );
	else
		return $string;
}

function pageshtm_active() {
	global $wp_rewrite;
	if ( ! strpos( $wp_rewrite->get_page_permastruct(), '.htm' ) )
		$wp_rewrite->page_structure = $wp_rewrite->page_structure . '.htm';

	$wp_rewrite->flush_rules();
}

function pageshtm_deactive() {
	global $wp_rewrite;
	$wp_rewrite->page_structure = str_replace( '.htm', '',$wp_rewrite->page_structure );
	$wp_rewrite->flush_rules();
}

You must log in to submit a review. You can also log in or register using the form near the top of this page.