Skip to content

Instantly share code, notes, and snippets.

@iscat
Created May 18, 2013 07:31
Show Gist options
  • Save iscat/5603572 to your computer and use it in GitHub Desktop.
Save iscat/5603572 to your computer and use it in GitHub Desktop.
<?php
/* Change the WordPress Default Permalinks for Pages
http://wpforce.com/change-wordpress-page-permalinks/
------------------------------------------------- */
add_action( 'init', 'custom_page_rules' );
function custom_page_rules() {
global $wp_rewrite;
$wp_rewrite->page_structure = $wp_rewrite->root . 'page/%pagename%.html';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment