How do I change Page to .PHP

5 replies
  • WEB DESIGN
  • |
I build a squeeze page using WP with Optimize press as theme. It is completely finished and I have it as a static page on the front, so when you go to my domain it shows up. So if I plug in my site mysite.com it shows right up.

I want my main page and all my other pages that I set up to end in .php what is the easiest way to do this? Is there some plugin I need or what?

I checked my permalinks and it's set /%postname%
#change #optimize #page #php #press #wordpress
  • {{ DiscussionBoard.errors[6960217].message }}
  • Profile picture of the author Dan Grossman
    Why would you want to do that?
    Signature
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[6960243].message }}
  • Profile picture of the author TDogger
    I also question why you would want to do that. There is no benefit with doing so. The permalink should only be modified like that if you are converting an existing .php site to WordPress.

    Have you tried using /%postname%.php as the permalink?
    {{ DiscussionBoard.errors[6963300].message }}
    • Profile picture of the author Dan Grossman
      Originally Posted by TDogger View Post

      Have you tried using /%postname%.php as the permalink?
      AFAIK, permalinks cannot contain periods in vanilla WordPress. At least, they couldn't last time I tried some years ago. You have to use a plugin to update the parser to allow them -- like Advanced Permalinks.
      Signature
      Improvely: Built to track, test and optimize your marketing.

      {{ DiscussionBoard.errors[6964164].message }}
  • Profile picture of the author ArcherWylde
    From what I understand if you have a URL like:
    /sub-dir/page-name/

    as far as site structure goes it is actually interpreted like:
    /sub-dir/page-name/index.php

    Not sure if there's any SEO benefit there, but if you add .php to your pages it will be moved up one directory like:
    /sub-dir/page-name.php
    {{ DiscussionBoard.errors[6964200].message }}

Trending Topics