robbie71321 Posted March 2, 2009 Report Share Posted March 2, 2009 I am wondering which is better for search optimisation: 1. Pages with a lot of the PHP "Include" commmand to provide the menus & the content or 2. Full HTML pages without any PHP Option 1. is preferred but i'm wondering if the search engines will "see" all the "files" that contain the content. Quote Link to comment Share on other sites More sharing options...
newseed Posted March 2, 2009 Report Share Posted March 2, 2009 Server Side Inlcudes using either PHP or ASP will be rendered when the visitor visits a page. So option 1 is the right choice because it will render just like option 2 as far as what google and yahoo sees. You can simply test this by display your web page with the php includes and then do a View Source via your browser. This is what search engines sees. Quote Link to comment Share on other sites More sharing options...
robbie71321 Posted March 2, 2009 Author Report Share Posted March 2, 2009 Thanks Newseed, You explained it perfectly and I did the test , Excellent!! Quote Link to comment Share on other sites More sharing options...
LSW Posted March 2, 2009 Report Share Posted March 2, 2009 There is no better as, as mentioned, the result is the same as the SE will see HTML. But No. 1 although not better for SEO, is easier on the developer and maintainer of the site. Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted March 2, 2009 Report Share Posted March 2, 2009 Have the best of both worlds... html pages produced by php scripting and use mod_rewrite for fancy URL's so it looks like an html page. Lots of CMS softwares use this approach. check out sNews, Joomla, Drupal et al. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.