Php Vs Html Pages Best For Seo?

16 replies
  • WEB DESIGN
  • |
I am building a few sites that I want to be SEO. I do know keywords and description, etc.

But my question is with Googles new algorithm, is my PHP site or a straight HTML better for SEO?? Below is sample coding for my PHP page that calls up the HTML pages. The reason I do this is if I change a header or footer, I only do it once.

ALSO does it matter if the HTM pages that are called up need to be optimized too??

<html>
<body topmargin="10" bottommargin="10" link="#0000FF" vlink="#0000FF" background="images/backg.gif">

<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="900" id="table1" bgcolor="#FFFFFF">
<tr>
<td>
<p align="center"></p>
<? include("includes/header.htm") ?></td>
</tr>
</table>
</div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="900" id="table2" bgcolor="#FFFFFF">
<tr>
<td width="150" valign="top" bgcolor="#FFF1A4">
<p align="center"></p>
<? include("includes/left_column.htm") ?></td>
<td valign="top">
<table border="0" cellpadding="5" cellspacing="0" width="100%" id="table14">
<tr>
<td><? include("pages/index.htm") ?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td width="150" valign="top" bgcolor="#FFF1A4">
<p align="center"></p>
<? include("includes/right_column.htm") ?></td>
</tr>
</table>
</div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="900" id="table3">
<tr>
<td valign="top">
<p align="center"></p>
<? include("includes/footer.htm") ?></td>
</tr>
</table>
</div>

</body>

</html>
#html #pages #php #seo
  • Profile picture of the author frenchsquared
    Google does not know the difference. You can use a mod rewrite to change the file extension to whatever you want.
    {{ DiscussionBoard.errors[5426696].message }}
    • Profile picture of the author tcr1016
      Originally Posted by frenchsquared View Post

      Google does not know the difference. You can use a mod rewrite to change the file extension to whatever you want.
      Should I optimize the HTML pages that are called up??
      {{ DiscussionBoard.errors[5426834].message }}
  • Profile picture of the author ernestrategos
    When you see it in the browser, everybody (even the google bot) will see it as a single html page, so no problem.

    One thing I recommend is change the extension of your included files with the format file.inc.php
    Why? because .inc would show you it's a file to be included (as your project gets bigger you'll see why) and php so people cannot read directly your file if they type it in the browser (you don't want people to see chunks of your pages code)
    Signature
    {{ DiscussionBoard.errors[5427040].message }}
    • Profile picture of the author tcr1016
      Originally Posted by ernestrategos View Post

      One thing I recommend is change the extension of your included files with the format file.inc.php
      Why? because .inc would show you it's a file to be included (as your project gets bigger you'll see why) and php so people cannot read directly your file if they type it in the browser (you don't want people to see chunks of your pages code)
      Ok so I should change: <td><? include("pages/index.htm") ?></td> to<td><? include("pages/index.inc.php") ?></td>
      And do I change the parent page from .php to .html?? The page I have in the post is .php, so it would read strategydepot.com/contact.php. Do I keep that or change it to HTML??

      I was also told in another forum that search engine bots do not crawl <? ... ?>. Is this true??
      {{ DiscussionBoard.errors[5427141].message }}
  • Profile picture of the author Istvan Horvath
    Do I keep that or change it to HTML??
    As it was said above - it is absolutely irrelevant! In plain English: it doesn't matter and you shouldn't waste time discussing it. Your file extensions (.php or .html) doesn't matter.

    I was also told in another forum that search engine bots do not crawl <? ... ?>. Is this true??
    Don't believe every BS you read on the internet... When the output is displayed in a browser, of course the code portions like <?php... ?> are NOT visible. Why would you need that? Look at the source code of your page(s) = that's what the search engines see.

    BTW, the correct code is <?php for the start, not <?
    Signature

    {{ DiscussionBoard.errors[5429863].message }}
  • Profile picture of the author shantanu
    HTML IS BEST for SEO trick coz it supports many types of scripts for increasing ur rankiing in google
    {{ DiscussionBoard.errors[5431303].message }}
  • Profile picture of the author rainso0
    PHP IS HTML by the time it gets to the user agent.
    {{ DiscussionBoard.errors[5433799].message }}
  • Profile picture of the author ernestrategos
    @tcr1016:

    It's html when the user gets to see it, I'm just recommending a best practice.

    @Istvan Horvath:

    He's using ASP style short tags for his php, he's totally free to do so, most shared hostings have it enabled by default, though it's not a recommended practice because of portability.
    Signature
    {{ DiscussionBoard.errors[5510756].message }}
  • Profile picture of the author mojojuju
    I think this question comes up about three times a month.
    Signature

    :)

    {{ DiscussionBoard.errors[5511013].message }}
  • Profile picture of the author automaton
    It doesn't matter, you can do proper on page SEO with both languages.
    {{ DiscussionBoard.errors[5511057].message }}
  • Profile picture of the author banglamovie
    This is not a problem ..u can use both language ..google dont check this.
    thanks
    {{ DiscussionBoard.errors[5511125].message }}
  • Profile picture of the author soldoni
    php or html, there is no difference. At end the output is always html
    {{ DiscussionBoard.errors[5512102].message }}
  • Profile picture of the author stevenpayales
    One more thing, make sure you have changed your permalinks to the title or the name of the page .. or you might want to name it based on your keywords.
    Signature
    If you have an urge to build something that could change the world, don’t focus on the money, but the legacy you’ll leave behind.
    Buy Back Telefoane - Get Dinodirect Coupon Codes and shop for LESS!@
    {{ DiscussionBoard.errors[5515579].message }}
  • Profile picture of the author evercrazy007
    As i know Search engine do not know the difference b/w PHP and Html. Search engine algorithms are based on on-page and site content mostly.
    {{ DiscussionBoard.errors[5516292].message }}
  • Profile picture of the author Detangled
    Apparently HTML is better..
    {{ DiscussionBoard.errors[5516624].message }}
  • {{ DiscussionBoard.errors[5517052].message }}

Trending Topics