html  versus php

Posted on 2006-03-21
Last Modified: 2010-04-27
Does anyone feel that search engines tend to index more of your site and faster if the pages are of the ".html" extension
rather than say ".php" ?
I see, to see more of my pages and indexed faster when they are ".html".

Anyone feel the same? Or know anything about this?

Question by:smphil
    LVL 7

    Accepted Solution


    The file extension makes no differece.

    It is just that dynamic URLs are not preferred (The urls with '?' in php).

    LVL 4

    Assisted Solution

    The reason for this effect is that simple html pages are much easier to spider then dynamic pages. If you create a site using php the pages will be dynami and could lead to problems in the indexing. If you build your php based website the right way there should be no problems in indexing, as long as you don't use too many variables (at most 2 but one would be better), don't use session id's (and var with like ID is a problem).

    Hope this helps.
    LVL 10

    Assisted Solution

    The Hypertext Markup Language (HTML) can be thought of as the mother language of the Internet.  It's advent came around in the early 90's and was the language supported by the browsers and web servers of those days, and today.  

    So, you can imagine since those early years up until now, the majority of websites have been largely only in HTML along with those devices and programs that worked along with them, and TCP/IP, worked very well with HTML.  

    In regard to your web pages, today's search engines can read your PHP web pages fine.  However, whether HTML or PHP or ASP, you need to follow good SEO practices for each of your web pages or you could hinder the visiting spiders from from being able to read your web page content and thus then possibly not indexing your site.  

    To this day I still make all of my main landing pages in HTML and feel confident those pages will get indexed.  I only use PHP with third-party applications and programs that I might need to run.  It's a wonderful language.  And for running dynamic databases that will generate long URLs using IDs, you absolutely want to make sure those can be indexed as well.  That's another story.

    LVL 12

    Assisted Solution

    I use PHP for minimising repetition of code on websites, if there is a part of a website that is heavily coded, I will include it using the

    include ("name.php);

    code to pull that piece of code in,

    just makes some pages look a lot smaller and easier to edit content.

    LVL 12

    Assisted Solution

    >> I see, to see more of my pages and indexed faster when they are ".html".

    No. But URL's without query strings are indexed better.
    LVL 7

    Assisted Solution

    .php is fine.

    There's some detailed information here: is one of the best resources on the net, and if you view the comments, you'll see I asked the same question as you months ago. Michael Duz is a professional SEO.
    LVL 4

    Expert Comment

    It will not make any difference!
    LVL 12

    Expert Comment

    Thank you granny mod.. :P

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    With many companies seeking to make the most of Social Media, the unprepared may find themselves feeling overwhelmed by the speed at which a anti-brand campaign gathers motion. Facebook ‘Hate’ pages appear overnight (or within minutes of a news arti…
    On April 11th, 2011, Google’s next iteration of the Panda algorithm was rolled out to English language queries in the USA, and the original Panda update was rolled out to all English language queries from around the world.  This update caused  addit…
    Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now