1 replies
  • SEO
  • |
Hi, friends i want some help in php on page seo!

I have separate pages example 1.php,2.php like this but how to give title for this seperate page? it was purely php site &i need code for canonical error for my php site!
#page #php #seo
  • Profile picture of the author paulgl
    php spits out html.

    I'm guessing the title is in the header, or something like that.

    You need to login to your hosting account and find what each uses.

    For example, my index,php page uses

    header.php
    sidebarphp

    then content..blah blah blah.

    then footer.php

    So if I want to modify the title, I go to the header.php FOR THAT PAGE.

    If it uses a universal header.php, then you want to modify that page and put the title separately from the header.php.

    That is, just do straight up html in what used to be the header. Eliminate that part.

    php makes it very easy to modify and add content, but it does spit out html.

    In fact, all my php coding is actually adding html, not data.

    If that sounds too hard, then an alternative would be to copy the header.php.

    Make a new header for each page, call them header1.php, header2.php, etc.

    Then on each page, instead of require header.php, just change that word to header1.php, etc.

    Paul
    Signature

    If you were disappointed in your results today, lower your standards tomorrow.

    {{ DiscussionBoard.errors[10712558].message }}

Trending Topics