Forum Moderators: coopster
A good practice if you are thinking your site will get a lot of traffic is to make the file that is served to the search engine static and only rewrite that file using a php script when a new article is uploaded. This can result in faster page loads, a more stable database and the ability for the site to survive being slashdotted/dugg.
A good point to note though is if you are using news articles culled from some obvious source (eg bbc news) and aren't making some sort of significant change to it or mash up with other information it may well be seen as duplicate content and penalized. Of course I could have just misunderstood what you mean by news, if so sorry!
Basically, I have an index.html (w/ .htaccess allowing PHP code in .html extensions) and my PHP script loading the top two entries from a site_news table. The rest of the site_news ntable is accessible through news-archive.html. Is this what you meant by only rewriting when a news article is posted?
What is it when a site is slashdotted/dugg? What causes this?
Thanks!
Actually I was suggesting whenever you upload a new news item to that table the index.html (or .php without .htaccess :) ) page gets written statically. No need to pull the news from the table every time the page loads if you know it hasn't changed. I don't do this with all my sites but the ones where I am that get a few thousand hits an hour show significant performance increases.
Otherwise on SEO hope I answered your question the search engines shouldn't see your php.