Although i asked about SEO for dynamic pages, and got right answer, I seriously forgot to mention the most important thing that i want to know.Suppose i have following php line of code<title><?php echo $title; ?></title><meta name=description content=<?php echo $description; ?> /><meta name=keywords content=<?php echo $keywords; ?> />where the variable represent the their values generated from a database.Now, there are two simple plain and stupid question i want to askWill search engine crawl this dynamically generated page as a normal static page with these values static.I don't know for some reason i think search engine don't do. But for example, when ever i type some question, i get the answer on stackoverflow website. I think the questions and answers are stored in database but how does a search engine find the page and display the title and description of the page stored in page. Or is it that stackoverflow generates a static page for each and every question that can be edited.regards
Will seach engine determine the page title and meta tags content dynamically generated in a CMS
seo
Methinks you need to learn a little more about how the internet works. When you request a URL from a server, the server returns a string of plain HTML. The server does not return PHP code. Your browser does not know whether the page is dynamically generated or served from a static file. It doesn't matter to them, they just want HTML to display. You get the same response either way.So it follows that your PHP code: <title><?php echo $title; ?></title> isn't returned, but the PHP bit is replaced by the $title variable. So if the title is Hello World, anyone requesting that page only sees <title>Hello World</title> in the HTML.So to your questions:Yes, browsers and search engines alike only see HTML code.Yes, the content is stored in the database. But on every URL you visit on the site, SO generates a complete HTML page (often it will be cached but it makes no difference). Go to a page and view the source in your browser, you will see exactly the same as what search engines see.