We help IT Professionals succeed at work.

html  versus php

smphil asked
Medium Priority
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?

Watch Question

Website Designer & SEO Consultant

The file extension makes no differece.

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


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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.
Mark BishopTechnical Writer & Consultant
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.

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.

>> 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.
.php is fine.

There's some detailed information here:


seo-blog.com 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.
It will not make any difference!

Thank you granny mod.. :P
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.