Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I added .html to the URLs of my website while the pages are not in HTML, will it hurt SEOof my site or will it be helful to my site in search engine rankings?

For example, say my domain is www.example.com which is a question and answers site, here I created a page which dynamically shows the answers of the questions, and the questions are populated from my database, so URLs are created dynamically, for example:


Here the questions my-question-no-1 and my-question-no-2 are from database, and I created a single page for hundreds or thousands questions.

So my question is for better SEO results Should my URL be like www.example.com/answer/my-question-no-1 or Changing the URL to www.example.com/answer/my-question-no-1.html will improve my site ranking in search engines?

share|improve this question
If you add .html to a URL, then you are calling a different file. http://www.example.com/index.php is different from http://www.example.com/index.html. So we can say that it will affect SEO, as you would be requesting files that doesn't exist. – PatomaS Mar 3 '14 at 5:51
thanks Mr/Ms PatomaS.. Please see the question again I've edited my question to deep and now answer my question... – Abhay Prince Mar 3 '14 at 6:09
up vote 1 down vote accepted

There is no benefit in one kind of file over the other. So no change on the extension of the file would make a difference.

In any case, if when a request for http://www.example.com/answer/my-question-no-1 is interpreted for a server side language, like PHP, ASP, perl, etc that generates certain load, if you change that to http://www.example.com/answer/my-question-no-1.html, you are adding, most probably, a layer of processing to the server since Apache, or whichever web server installed would have to use rewriting rules to parse that information.

If you can skip the web server, not doing any extra rewrite, then the request would go to the same file, index.php for instance, that is doing the processing now, but that file would have to remove the extension, which is not much work, but is unnecessary.

Conclusion, don't do it, there is no benefit at all but could be some drawbacks.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.