Support » Fixing WordPress » Rewrite a specified page permalink

  • Hi, guys, wondering if anyone could give be a kick in the right direction!?

    I want to do this:

    Change the permalink of a specified page from to

    …and that because I want to reuse the pagerank that already exist for

    …and I want to do that for that page ONLY!

    I’ve found this plugin that adds a html extension to ALL the pages pemalink, the code:

    add_action('init', 'html_page_permalink', -1);
    function html_page_permalink() {
    	global $wp_rewrite;
    	if ( strstr($wp_rewrite->get_page_permastruct(), '.html') != '.html' )
    		$wp_rewrite->page_structure = $wp_rewrite->page_structure . '.html';

    So, changing the .html to .htm would do the trick, except it changes all the pages permalinks, is their any way to modifie the plugin code to just rewrite the permalinks for the page/pages I want to?

    Or do I have to add a rewrite rule in the .htaccess!? (If that’s even possible, I’m not very familiar with that)

    All help would be appreciated! Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Rewrite a specified page permalink’ is closed to new replies.