Yeah, should be fine.
Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Posts made by StalkerB
-
RE: Sequence of heading tags (H1, H2, H3, etc) important?
-
RE: Moving a html site into Wordpress
Yes.
In your permalink settings just add .html (or whatever) to the end of your permalink settings so %postname%.html and that will work... for posts.
To add it to pages you can either use this plugin - http://wordpress.org/extend/plugins/html-on-pages/ - bearing in mind it's rarely updated, hack wp_rewrite in wp-includes/rewrite.php
add_action('init', 'change_page_permalink', -1); function change_page_permalink() { global $wp_rewrite; if ( strstr($wp_rewrite->get_page_permastruct(), '.html') != '.html' ) $wp_rewrite->page_structure = $wp_rewrite->page_structure . '.html'; }
bearing in mind you'll have to do this every time you update
or add it in your .htaccess
RewriteEngine On RewriteCond %{REQUEST_URI} !.[a-zA-Z0-9]{2,3,4} RewriteCond %{REQUEST_URI} !/$ RewriteRule ^(.*)$ $1.html
I'm not taking any responsibility for messing up that last one