Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Php Vs Html Pages Best For Seo?


  • Please log in to reply
12 replies to this topic

#1 tcr1016

tcr1016

    HR 2

  • Members
  • PipPip
  • 13 posts

Posted 14 January 2012 - 08:15 PM

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??

CODE
<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>
            [b] <? include("includes/header.htm") ?></td>[/b]
        </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>
                    [b]<td><? include("pages/index.htm") ?></td>[/b]
                </tr>
                <tr>
                    <td> </td>
                </tr>
            </table>
            </td>
            <td width="150" valign="top" bgcolor="#FFF1A4">
            <p align="center"></p>
             [b]<? include("includes/right_column.htm") ?></td>[/b]
        </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>
             [b]<? include("includes/footer.htm") ?></td>[/b]
        </tr>
    </table>
</div>

</body>

</html>


#2 Tiggerito

Tiggerito

    HR 2

  • Members
  • PipPip
  • 49 posts
  • Location:Adelaide, South Australia

Posted 14 January 2012 - 09:40 PM

It makes no difference if php was used to create html or if it was a static html file.

What can make a small difference is in the URLs you use for the pages. php tends to create some ugly URLs:

/index.php?id=456756786

Have a look at the URL for this page!

You want to avoid this. People prefer nice URLs and it also helps a little with the search engines. This pages URL is a good example of one that may be hard for search engines to crawl.

A technique called URL rewriting is now often used to make ugly URLs nice. They are often called Search Engine Friendly (SEF) URLs.

If your using an Apache server then you would do this via the .htaccess file.

#3 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 6,790 posts
  • Location:Blackpool UK

Posted 15 January 2012 - 11:23 AM

PHP IS HTML by the time it gets to the user agent.


#4 piskie

piskie

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,098 posts
  • Location:Cornwall

Posted 15 January 2012 - 06:49 PM

In my opinion, as far as Search Engines go, there is nothing wrong with either:
/index.php?id=456756786
or
forum/index.php?showtopic=46919&hl=

#5 ITsoldUK

ITsoldUK

    HR 1

  • Members
  • Pip
  • 5 posts
  • Location:Leicester

Posted 18 January 2012 - 12:00 PM

QUOTE(Tiggerito @ Jan 15 2012, 02:40 AM) View Post
It makes no difference if php was used to create html or if it was a static html file.

What can make a small difference is in the URLs you use for the pages. php tends to create some ugly URLs:

/index.php?id=456756786

Have a look at the URL for this page!

You want to avoid this. People prefer nice URLs and it also helps a little with the search engines. This pages URL is a good example of one that may be hard for search engines to crawl.

A technique called URL rewriting is now often used to make ugly URLs nice. They are often called Search Engine Friendly (SEF) URLs.

If your using an Apache server then you would do this via the .htaccess file.


Hi

I tend to disagree with this and would appreciate being proved wrong if I am.

My belief is that Google and other search engines don't care what the URL says. They care about the content of the page.

JMTC

Regards

#6 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 6,790 posts
  • Location:Blackpool UK

Posted 18 January 2012 - 12:29 PM

Matt Cutts has said on a couple of occasions that can help, but don't make a big deal about it.

Personally I have yet to see it make a noticeable difference to anything other than speed that bots will "hit" your pages with repeated requests.

#7 Jill

Jill

    Recovering SEO

  • Admin
  • 32,917 posts

Posted 18 January 2012 - 12:38 PM

QUOTE(Tiggerito)
This pages URL is a good example of one that may be hard for search engines to crawl.


That is incorrect. This forum and all its pages get crawled perfectly fine.

#8 TheGreatHefin

TheGreatHefin

    HR 2

  • Members
  • PipPip
  • 15 posts

Posted 15 March 2012 - 10:02 AM

QUOTE(Tiggerito @ Jan 15 2012, 08:10 AM) View Post
/index.php?id=456756786

Have a look at the URL for this page!

You want to avoid this. People prefer nice URLs and it also helps a little with the search engines. This pages URL is a good example of one that may be hard for search engines to crawl.

A technique called URL rewriting is now often used to make ugly URLs nice. They are often called Search Engine Friendly (SEF) URLs.

If your using an Apache server then you would do this via the .htaccess file.


The Clean Urls or the So Called Search Engine Friendly URLS are only made for easier readability for users...it has nothing to do with the Crawling or the Search engine finding it easier to find etc...the reason behind them being so favored is some Clean URLS have the targeted keywords in it.....

As off what i have read...and have practiced...you should have a Good Sitemap...which helps Search Engines to find and crawl all your pages...

#9 danielmarriott

danielmarriott

    HR 2

  • Members
  • PipPip
  • 11 posts
  • Location:Lincolnshire

Posted 19 March 2012 - 08:57 AM

QUOTE(Tiggerito @ Jan 15 2012, 08:10 AM) View Post
/index.php?id=456756786

Have a look at the URL for this page!

You want to avoid this. People prefer nice URLs and it also helps a little with the search engines. This pages URL is a good example of one that may be hard for search engines to crawl.

A technique called URL rewriting is now often used to make ugly URLs nice. They are often called Search Engine Friendly (SEF) URLs.

If your using an Apache server then you would do this via the .htaccess file.


The Clean Urls or the So Called Search Engine Friendly URLS are only made for easier readability for users...it has nothing to do with the Crawling or the Search engine finding it easier to find etc...the reason behind them being so favored is some Clean URLS have the targeted keywords in it.....

As off what i have read...and have practiced...you should have a Good Sitemap...which helps Search Engines to find and crawl all your pages...



Well said, We have been doing a lot of SEO Friendly URL work recently.

From a users view they look much better and give the user an idea of what the page is about, e.g. /Shop/Motorcycle-Helmets/Arai-Motorcycle-Helmets

Google also like this as we can see from this listing on page 1
I removed the first part of the url from the text below,







/Motorcycle-Helmets/Arai-Motorcycle-H...
Arai Motorcycle Helmets, the complete UK Range from Branded Biker, Five Star Dealer and Stockist for Arai Motorcycle elmets, Spares and Accessories.



another example is this products that ranks as number 2 in google when you search for: standard sunflower hearts


/our-shop/.../Standard-Sunflower-Hearts/3...

A no mess solution to black sunflowers, these standard sunflower hearts are a real winner with most garden birds.


#10 Purple3

Purple3

    HR 2

  • Active Members
  • PipPip
  • 25 posts

Posted 08 August 2012 - 10:06 AM

Hi with a new site with .html and the old site with .htm is it necessary to do 301 redirects - The question is theoretical

#11 piskie

piskie

    HR 7

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,098 posts
  • Location:Cornwall

Posted 08 August 2012 - 12:21 PM

If you have access to htaccess that is by far the best way.
Just search Google for the correctly way to write the couple of code lines.
Best done by using the same filename and set the htaccess to divert all filename.html to filename.htm and give a 301 response.

#12 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 6,790 posts
  • Location:Blackpool UK

Posted 09 August 2012 - 09:34 AM

Hi with a new site with .html and the old site with .htm is it necessary to do 301 redirects - The question is theoretical


A URL redirect is required if the URLs are changing, and going from a document extension of .html to an extension of .htm is a URL change.

#13 Tiggerito

Tiggerito

    HR 2

  • Members
  • PipPip
  • 49 posts
  • Location:Adelaide, South Australia

Posted 24 August 2012 - 09:21 AM

QUOTE(Tiggerito)
This pages URL is a good example of one that may be hard for search engines to crawl.


That is incorrect. This forum and all its pages get crawled perfectly fine.


Yes, Not sure what I was looking at when I wrote it. Nothing wrong with the URL here. Scrub that line.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!