Support » Fixing WordPress » Permalinks To Match Static Site

Viewing 5 replies - 1 through 5 (of 5 total)
  • When you use nice Permalinks, they are automatically created for the Pages, too.
    You could use parent/child pages to get:

    However, for Pages you will not have permalinks ending in .php (or any other extension, for that matter)

    Thanks Moshu,

    So I basically create an empty page with the slug as “resources” (from my example above) – and then set the “page-title” page as a child of it?

    Also, will this work for the .php extension on on my files:
    (taken from:
    Tips and Tricks
    Having your posts end in .html

    There’s an easy way to having your posts end in a .html extension, using the structure tags above. Following the example used on properly terminating permalinks, you could have a page like with this rule:


    Note that this does not generate actual .html files. It is only an illusion…
    This should work by changing .html to .php, correct?

    Having links ending with an extension is a little outdated now, a legacy of the way old static sites used to work.

    I’m going to move some old, static .php pages to WordPress soon, and I’ll do so by creating WP pages with a matching name, but without .php for the permalink. Then I’ll add a rule to my .htaccess that permanently redirects any requests for a .php page by stripping the extension off the end. Search engines will soon update, and you can leave the line in your .htaccess so that old external links continue to work.

    Something like:
    RewriteRule ^(.*).php /$1/ [R=301,L]

    Yes – thanks jrawle about that info. I do not use any extensions on my sites, other than this particular one.

    Reason why I want to keep the .php on “certain” pages on this site is due to PR being assigned to specific pages, and not just / (index.php files).

    Once I get the site up on WP, and have PR “showing” for those specific pages, (basically, once the transfer is “seamless”), then I’ll remove the .php extension from some of the pages.

    Thanks for all the help you all! I’ve successfully completed the move.

    I’m using : /%category%/%postname%/ : with .htaccess 301 redirects.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Permalinks To Match Static Site’ is closed to new replies.