: Will seach engine determine the page title and meta tags content dynamically generated in a CMS Although i asked about SEO for dynamic pages, and got right answer, I seriously forgot to mention
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 ask
Will 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
More posts by @Eichhorn148
3 Comments
Sorted by latest first Latest Oldest Best
If you ever wonder what a search engine will "see," turn off JavaScript, open a website, right click, and select "View Source" (or something along those lines).
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.
I think you already have your answer on your previous SEO question.
But let's go for your anwsers:
Yes, search engines cannot really determine from where data it is seem came. They see only plain HTML. What they see is what they index. To have a better idea, just look at the generated HTML source code. That is what crawlers see and process. Nothing further.
This is a valid example for your question. But keep in mind that only in a few cases the title tag is changed. In articles it is even more rare the title change. Also we all avoid changing title. When this happen, happen at most just once.
Hope you got the points.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.