www.webdeveloper.com
Results 1 to 7 of 7

Thread: Php & seo

  1. #1
    Join Date
    Feb 2013
    Location
    Milton Ontario Canada
    Posts
    2

    Php & seo

    I am attempting to construct a website using PHP include, just to bring in common elements like the header and menu navigation. The rest will be HTML.

    I was wondering if there is any affect on SEO when using this method?

    thanks
    Steve

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,912
    Not if the resulting HTML is what you would want anyway for SEO purposes. However, you might want to make sure that whatever you use for the "header" includes a way to get any page-specific info into it (such as meta tags keywords/descriptions). I often write them as PHP functions that accept parameters, so the calling page can require_once() the function definitions, then invoke the functions to get the customized output, e.g.:
    PHP Code:
    <?php
    require_once $_SERVER['DOCUMENT_ROOT'].'/includes/html_funcs.php';
    echo 
    htmlHeader('keyword1, keyword2, keyword3''This is a description');
    ?>
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2003
    Location
    Lansdale, PA
    Posts
    85
    Since the server side php code is not seen on the front end (by the search crawlers), it won't have an impact as long as your resulting html is seo friendly. In fact there's no real way (besides the file extension) for the crawler to even know the site is coded in php.

    -jim

  4. #4
    Join Date
    Feb 2013
    Location
    Milton Ontario Canada
    Posts
    2
    Hi Guys,
    Many thanks for the info.

  5. #5
    Join Date
    Feb 2013
    Posts
    11
    Thank you for sharing great data

  6. #6
    Join Date
    Nov 2012
    Posts
    450
    PHP is SEO friendly so there is no disadvantage or that.

  7. #7

    Thumbs up

    Things you should avoid are

    1. Duplication of meta tags
    2. Duplication of Content
    3.Duplication of Header Tags

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
HTML5 Development Center



Recent Articles