Submit Your Article Forum Rules

Results 1 to 6 of 6

Thread: PHP webpage optimization

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    6

    PHP webpage optimization

    Hi,
    This question is kinda hard to explain, so please bear with me.

    For a new site of mine www.makeagreatsite.com I've been using php to make the layout easy to update, should I ever want to change anything.

    For example, if you go to the home page, you'll see the top of the page which is the header.html file, a blue sidebar, which is the menu.html file and the index.htm file, which contains the actual content of the page.

    On each page the menu and header files will be loaded around whatever content page I want it to.

    I know that this might be very obvious to most people, but I want to explain everything full incase I miss something important :)

    Take a look at the source code.

    My question is this:
    At the top of the source code is a title a head and body section, but further down the page, this appears again.

    I'm guessing that the first part is for the php page itself, and the second set of head,body and title tags etc are for the content page.

    Should I delete one of the sets of tags? Because it might look spammy if I have 2 titles for 1 page as well as descriptions and sets of keywords.

    What shoudl I change if anything, or would it have no effect if I had 2 of everything, I assmue it would.

    Thanks

  2. #2
    usually use one set of tags.. I never heard of anyone using 2. I follow the same steps you did with the header and footer + the menu. each has a file of their own, so i could update the site more easily. and the site is showing on the web and has been indexed.
    www.womenxtra.co.uk
    Join our new community and take part in the discussions!

  3. #3
    Junior Member
    Join Date
    Jun 2006
    Posts
    6
    Oh another londoner, small world :)

    I'm wondering why there are only 2 sets of tages though. Since it's pulling information from 3 pages, you'd think that there would be at least 3 sets of tags, i.e. 1 for the header, 1 for the menu and 1 for the main body of the content, hmmmm.

    I think perhaps I should delete all the tags in the content one and use them in the php file, because this is the actual file that the search engines see.

    I blocked search engines from finding the actual content of the pages i.e. the htm files that contain the information, but let them find the php pages as they contain the same information the content pages do.

    I did this to avoid a content duplication penalty, was I correct in doing this?

  4. #4
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    Yes, you should remove those extra tags from the header and menu files.

    You shouldn't have to block those included files, since no one will find them, as they get compiled into the content page.
    Web Hosting Guru
    | Need Help For Your Forum?

  5. #5
    Junior Member
    Join Date
    Jun 2006
    Posts
    6
    I'm not worried about people finding them im worried about google finding them.

    because the content in the php files and the actual content .htm files are the same, i don't really want google scanning my directories to find i've duplicated every page lol.

  6. #6
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    I understood what you meant.

    What I usually do, is put these pages in an includes folder, then block the folder from all search engines using htaccess
    Web Hosting Guru
    | Need Help For Your Forum?

Similar Threads

  1. Webpage Optimization Tools...
    By fieldsimc in forum Search Engine Optimization Forum
    Replies: 4
    Last Post: 09-17-2009, 01:10 PM
  2. IS Video Optimization a part of Search engine optimization?
    By hanenemourey in forum Search Engine Optimization Forum
    Replies: 5
    Last Post: 09-23-2008, 07:06 AM
  3. Alt Optimization:Text-navigation optimization
    By seolearner in forum Search Engine Optimization Forum
    Replies: 13
    Last Post: 12-23-2005, 12:05 AM

Posting Permissions

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