Php Vs Html Pages Best For Seo?

by 16 replies
18
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>
#website design #html #pages #php #seo
  • Google does not know the difference. You can use a mod rewrite to change the file extension to whatever you want.
    • [1] reply
    • Should I optimize the HTML pages that are called up??
    • [DELETED]
  • 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)
    • [1] reply
    • 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??
  • 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.

    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 <?
  • HTML IS BEST for SEO trick coz it supports many types of scripts for increasing ur rankiing in google
  • PHP IS HTML by the time it gets to the user agent.
  • [DELETED]
  • @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.
  • I think this question comes up about three times a month.
  • It doesn't matter, you can do proper on page SEO with both languages.
  • This is not a problem ..u can use both language ..google dont check this.
    thanks
  • php or html, there is no difference. At end the output is always html
  • 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.
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • 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.
  • Banned
    [DELETED]
  • Apparently HTML is better..
  • Banned
    [DELETED]
  • It makes no difference, at all.

Next Topics on Trending Feed

  • 18

    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.