While I have been optimizing sites for a few years now, I am new to php, and have a client whose site seems to call most of its' information from php files (including the body content). My question is this: Does Google care that these essential SEO items are stored off of the home page and in php files, or does it just follow the include references to the php files and index the SEO info that is there? When you look at the source for the home page, everything seems to be there, but when I went to optimize it, there was hardly any code there except for includes for the meta tags, body content, etc. Any help is greatly appreciated...
You need to modify the php files that are called on for each section of the page (header, sidebar, footer, etc.). There's no difference how php or html files are indexed.
there are many ways to optimize a dynamic site Few hints 1. URL Must be .html not .php google donot like .php 2. URL's should not be very long 3. Each page should have a <h1> tag 4. Each page shd have seperate meta tags with info 5. It does not matter if info is coming from db or php as php is server side it send html to client so search engines donot see php code. 6. With PHP optimization is more easy but lil tricky Regards Alex
Thanks for the quick replies. Just so I am clear - when Google goes to index the site, it does not have a problem with the meta info and the body content being stored off-page and in the php files?
.html .php .asp .htm - the extension of the page does not matter as long as the content is spiderable and your internal linking structure is setup properly.
No problems, because the PHP files are called on and are embedded into the main PHP file. If you have a site with frames, that's a different story. But embedded PHP files in a regular page are no issues at all. Good luck
Alex, Google does not care one way or another if a page is saved with a .php or any other non-HTML extension as long as the file extension is NOT a .exe
No PHP urls are mostly non search engine Friendly ,I am talking about complex url with Get attributes Regards Alex
PHP files are included into the page and the googlebot only reads the page once its put together. as far as that goes. Googlebot doesnt go around trying to fetch the pages .. it just makes a call to the main landing page and sees it similar (perse) to how a person sees it when its put together. Unless youre talking about php scripts that dont get actived until something happens after the page has been loaded.
That was true back in 2001 and 2002, but it's not true now. Google can handle them fine as long as you limit the number of parameters used and avoid using things like session IDs in your query strings.
google can handle php very easily nowadays, dp is a good example. if you only focus on 1 or 2 keywords at first, i thinks even dynamic php urls are also ok for seo. if you need to focus on many keyword, .html .php still the same, but do not use dynamic php urls.