Hello everyone....i am hoping someone can give me some advice.

Here are my questions:

1) when you use include headers, footers and main body type html coding to build your pages dynamically how do search engines craw them?

2) lets say you build a page like so:

include("header.php");
include("WHAT_EVER_main_body_page_you_need.php");
include("footer.php");

a) do you still place the meta tags in the header file or should you also place meta tags into the WHAT_EVER_main_body_page_you_need.php? for example place tags in the index.php page and also place tags in the gallery.php page as well.

Or should your meta tags be includes as well. So for example, if you are the index.php it includes one set and if the path is gallery.php then the if statement would include a different set of meta tags?

Or should I not use page includes to build the total page at all and simply build each page straight up with HTML and place PHP tags in the HTML to create the dynamic data output???

What is the best way to do this? Any suggestions would be helpful

Thanks in advance for your input

Jay

    phpnow,

    meta tags must be in between the <head> </head>. And have them placed immediately after title.

    (For SEO Reasons)

    i.e. Head, Title, Meta, Meta, Meta, rest.

    If you are customizing keywords, etc for a per-page basis, you can still do so using the include header.php as you have mentioned above.

    However, if you are looking for top functionality I would recommend something like Smarty Templates. Its a templating system with a TON of features.

    However, it also depends on how much coding you will be doing, if its a small amount, Smarty may be overkill.

      HTML structure issues aside, the search engines will be totally oblivious as to whether the page content is generated by one file or by 50 included files. All the search engines see is the same thing your browser sees: the resulting [X]HTML content returned by the HTTP responses. So the use of includes is a non-issue as far as SEO is concerned (as long as you are still generating valid [X]HTML content that addresses all your other SEO concerns).

        Thank you both for your responses. I was completely unsure about that...After I posted the question I went and read some articles and help forums and understand things a little better. So with your responses and what I read I have pretty good idea on how I should do this.

        Thanks for your help.

          Write a Reply...