7 replies
  • SEO
  • |
Hi all,

How is it that WordPress blog files don't end with the .php file extension when WordPress is coded primarily in PHP? Please share your knowledge on this...
#cms #wordpress
  • Profile picture of the author S.
    Wordpress has URLs rewritten bij Apache (or another webserver) using .htaccess files to make it more user-friendly You can change URLs to anything, removing the .php extension, changing it to something else (like .html which Google prefers), or you can remove information that's useless to your visitors, to make it more memorizable (if that's a word). If you search for htaccess + rewriting you can find more info about it.
    {{ DiscussionBoard.errors[3294472].message }}
    • Profile picture of the author Terrence Taitt
      Is that what you mentioned done automatically with WordPress or must it be configured in the .htaccess file?
      {{ DiscussionBoard.errors[3294628].message }}
    • Profile picture of the author Terrence Taitt
      Why does Google require for the files to end in .html? And second, if I'm using WordPress would I have any problems if I use the .html file extension or should the file extension be .php instead? Please share you knowledge...
      {{ DiscussionBoard.errors[3294663].message }}
      • Profile picture of the author S.
        Originally Posted by Terrence Taitt View Post

        Why does Google require for the files to end in .html? And second, if I'm using WordPress would I have any problems if I use the .html file extension or should the file extension be .php instead? Please share you knowledge...
        It's not required to have links end with .html instead of .php but a few months ago I read Matt Cutts saying Google prefers .html.
        {{ DiscussionBoard.errors[3346059].message }}
  • Profile picture of the author GeorgR.
    Google does not require any specific ending of your files.

    No, you dont need to mess with .htaccess, you can do this all withing wordpress. Its called permalinks.

    A common setting is to use /%postname% or
    /%category%/%postname%

    or you could also use

    /%postname%.html

    and each of your posts will have the .html ending. Wordpress does the rewriting automatically. Its essential for good SEO to use this option.
    Signature
    *** Affiliate Site Quick --> The Fastest & Easiest Way to Make Affiliate Sites!<--
    -> VISIT www.1UP-SEO.com *** <- Internet Marketing, SEO Tips, Reviews & More!! ***
    *** HIGH QUALITY CONTENT CREATION +++ Manual Article Spinning (Thread Here) ***
    Content Creation, Blogging, Articles, Converting Sales Copy, Reviews, Ebooks, Rewrites
    {{ DiscussionBoard.errors[3294827].message }}
  • Profile picture of the author jazbo
    Search, "wordpress permalinks" on Google. Read until your eyes bleed.
    Signature
    CONTENT WRITER. Reliable, UK-Based, 6 Years Experience - ANY NICHE
    Click Here For Writing Samples & Online Ordering
    {{ DiscussionBoard.errors[3294881].message }}
  • Profile picture of the author thebitbotdotcom
    Whatever way you choose to display your URLs, just make sure and do one thing. Stick with whatever you choose indefinitely because if you change it in the future you will essentially de-index ALL of your pages.
    Signature
    Do Your Copywriting Skills Suck?

    Let Us Help You Develop Your Writing Skills!

    Submit Guest Posts With [ TheBitBot.Com ]
    {{ DiscussionBoard.errors[3346075].message }}

Trending Topics