Domain Manage

SSI or PHP include?

Discussion in 'SEO Search Engine Optimisation' started by purg, Nov 10, 2006.

Thread Status:
Not open for further replies.
  1. purg Ireland

    purg Active Member

    Joined:
    Sep 2006
    Posts:
    405
    Likes Received:
    6
    Ive always used includes of some form or another but dont know which is better in the seo guise. Personally I cant see why either would be classed bad or wrong but cant harm having other opinions.

    Code:
    standard html written in php files to allow <?php include("aaa.php"); ?>
    
    or standard shtml files with <!--#include file="aaa.html"-->
    
    Both do the same thing but which should be used and more importantly WHY?
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. russ

    russ Active Member

    Joined:
    Sep 2006
    Posts:
    126
    Likes Received:
    3
    Makes no difference to SEO. As far as I am aware search engines don't weight pages with .php extensions or .shtml extenstions differently.

    Use the PHP includes though because they're faster and are much less CPU intensive.
     
  4. A-Wing

    A-Wing Active Member

    Joined:
    Feb 2006
    Posts:
    201
    Likes Received:
    4
    SSI is generally more of a security risk than PHP. I am pretty sure in theory it is easier to crash Apache using SSI than PHP.
    However a bad PHP programmer can make PHP scripts just as insecure as SSI ones quite easily.
     
  5. Jeewhizz

    Jeewhizz Well-Known Member

    Joined:
    May 2006
    Posts:
    1,177
    Likes Received:
    18
    I would go the PHP route. As long as you are careful with what you are doing, you can avoid most, if not all, security problems. If you are concerned, then post up the code, and i'll check it out for you.

    The benefit of using PHP will be that as your site develops+expands, you can slot in other PHP snippets that aren't possible with SSI such as DB connectivity, image generation, contact form etc...

    Jee
     
  6. purg Ireland

    purg Active Member

    Joined:
    Sep 2006
    Posts:
    405
    Likes Received:
    6
    Thanks for all your comments. Dont have a problem with security but thanks for the SEO pointers. Had a feeling it might be a considerations.
     
Thread Status:
Not open for further replies.

Share This Page