+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 12

Thread: HTML vs PHP pages?

  1. #1
    niky is offline Frontpage User niky will become famous soon enough
    Join Date
    Jul 2008
    Posts
    3

    Default HTML vs PHP pages?

    Hello
    I am just finishing an SEO job for one of our main clients.
    I instructed our designer to use basic html for all the important pages I have optimised for, the core and long tail phrases.
    He has just shown me the finished site, all the pages are php even the ones I specifically asked to be HTML.
    Q: does Google and the like index and rank php pages the same as HTML or will I have to get the designer to redo the main pages as basic HTML?
    Everyone's thoughts, opinions, and experiences are much appreciated.
    Best regards
    _________________________
    Last edited by blacknight; 10-04-2009 at 08:55 AM. Reason: signature rule violation

  2. #2
    paul's Avatar
    paul is offline ninja SEO paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of paul has much to be proud of
    Join Date
    Dec 2006
    Location
    .de
    Posts
    1,277

    Default

    Code:
     RewriteEngine on
    RewriteBase /
    RewriteRule ^(.*).html$ $1.php [L]
    
    use this in your .htaccess file . So you have a file called glasses.php, it will be accessible under glasses.html. Just change all the links from .php to .html.

    There is no real benefit, google is capable of indexing many types of pages.

  3. #3
    aathuls is offline Frontpage User aathuls will become famous soon enough
    Join Date
    Oct 2008
    Posts
    15

    Default

    PHP is the programing language and HTML is the markup language.Html code is created by various way, including in php.
    aathuls

  4. #4
    Join Date
    Jan 2006
    Posts
    104

    Default

    Quote Originally Posted by niky View Post
    Q: does Google and the like index and rank php pages the same as HTML
    Maybe the question should be do search engines prefer the extension .php or .html

    As aathuls said above, php will process the output markup as html, an as Paul said use the rewrite rule to express it as .html
    An example is this forum page, it’s .php but as you can see in the address bar it shows .html

    In my experience the search engines will read .php and .html equally; however, the idea of the rewrite rule is to get a couple of keywords into the page URL, which may help your SERPS

  5. #5
    blacknight's Avatar
    blacknight is offline Web Slave blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold blacknight is a splendid one to behold
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    7,903

    Default

    You can always compromise and tell apache to treat files with a .html extension as php

    In any case as Archstanton says, the more semantic URLs can help with SERPS

  6. #6
    Hafsoh's Avatar
    Hafsoh is offline Coder Hafsoh will become famous soon enough
    Join Date
    Sep 2008
    Posts
    95

    Default

    For search engines, the programming language is not important, it's the content and the way in which it's presented which gets you the results.

  7. #7
    savvi is offline Frontpage User savvi will become famous soon enough
    Join Date
    Nov 2008
    Location
    South Africa
    Posts
    11

    Default

    I still find html pages indexed better than php, my personal preference is php, you can make a php.ini file in your public_html folder or root, I'm sure if you do a search you can get the content.

    yet a sitemap.xml file helps google, msn etc to index your php content pretty well

  8. #8
    link8r's Avatar
    link8r is offline Hardcore Geek link8r is a splendid one to behold link8r is a splendid one to behold link8r is a splendid one to behold link8r is a splendid one to behold link8r is a splendid one to behold link8r is a splendid one to behold link8r is a splendid one to behold link8r is a splendid one to behold
    Join Date
    Nov 2008
    Location
    Limerick
    Posts
    729

    Default

    Quote Originally Posted by savvi View Post
    I still find html pages indexed better than php, my personal preference is php
    For what it's worth, I've found PHP/ASP/ASPx files index better, higher and get indexed more frequently. Remember, for almost everybody, SEO is about cause-and-effect. Many people may have had PHP files, read that HTML works better and so switch to HTML (why?) and then have seen a positive effect in SERPs. But there could have been a lot of other factors involved and any of these (Google calls them signals) may have been the "catalyst" of change in the SERP.

    Some of the reasons many people feel (claim to feel) that HTML is better is because the name appears static and more controllable. If you have a single web page, e.g. mydomain/content.php and this PHP file controls all of your content without the URL changing, this would definitely be unhelpful for SEO. A basic easy rule of thumb -give each page a uniqe URL.

    For example, your About Us page - this could be mydomain.com/aboutus.php or mydomain.com/content.php?about_us. Either way the file arrives as HTML to both your browser/GoogleBot

  9. #9
    starindia is offline Frontpage User starindia will become famous soon enough
    Join Date
    Nov 2008
    Posts
    10

    Default

    PHP is used to make HTML more dynamic than the usual use of Javascript. Its a server side process while HTML is client side.
    starindia

  10. #10
    jen.bas is offline Frontpage User jen.bas will become famous soon enough
    Join Date
    Nov 2008
    Posts
    9

    Arrow

    I agree.. haven't heard so much about search engines giving higher value if it's in php or html format..

+ Reply to Thread
Page 1 of 2
1 2 LastLast

Similar Threads

  1. Validating Pages
    By carrivemedia in forum Webmaster Discussion
    Replies: 3
    Last Post: 06-04-2008, 09:23 PM
  2. How often does google cache pages
    By companyhotseat in forum Google
    Replies: 1
    Last Post: 06-03-2008, 06:09 PM
  3. pages from ireland
    By johned in forum Google
    Replies: 9
    Last Post: 06-03-2008, 05:57 PM
  4. AW-specific pages
    By glengara in forum Google Adwords
    Replies: 9
    Last Post: 15-11-2007, 06:14 PM
  5. Passing arrays through pages
    By daryllsheridan in forum Coding Help
    Replies: 4
    Last Post: 01-04-2007, 11:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64