First of all, I have to explain
I have a page assuming users.php
Use php to retrieve the data from the database and then grab the GET[ID] parameter to check the data displayed by mysql
I have a question...
Although it is all It’s the same page (users.php)
But different people’s information will be displayed based on the get id
I would like to ask how to let the search engine (like google) find the person and enter the information of that person?
Just like Facebook, if I look for someone, I can find their personal page....
First of all, I have to explain
I have a page assuming users.php
Use php to retrieve the data from the database and then grab the GET[ID] parameter to check the data displayed by mysql
I have a question...
Although it is all It’s the same page (users.php)
But different people’s information will be displayed based on the get id
I would like to ask how to let the search engine (like google) find the person and enter the information of that person?
Just like Facebook, if I look for someone, I can find their personal page....
Regarding this issue, I think you should first understand how the search engine crawler obtains your page. If you want search engines to include a page on your site, then you should place a link to that page in a page that crawlers are likely to crawl. Because until you actively ‘tell’ the crawler about a page on your website, the crawler cannot know that this page exists on your site.
Suppose I have a site at www.littled.cn, and no pages of this site (including the homepage) have been indexed by search engines (such as Baidu). Then, if I want Baidu to include my site, I can post the link on a page that Baidu has included, such as the current page https://segmentfault.com/q/1010000006911853. In this way, when Baidu's crawler crawls our current page https://segmentfault.com/q/1010000006911853 again, the crawler will find the homepage address of my site - www.littled.cn. The crawler can follow this address to reach the homepage of my site and include it in Baidu's database (the actual situation is that the search engine will judge whether to include this new page according to its own set of rules. To simplify the description , we assume that once the crawler crawls to the page, it will definitely include the page).
If the homepage of my site does not have any links to other pages in my site, only the homepage of my site will be indexed by Baidu. So how do I let search engines search other pages of my site? It's very simple, just add the link of the page that needs to be included to the homepage! (The actual situation may be that a link will be placed on a page multiple layers behind the homepage, for example: the link to the user details page is placed on the user list page, and then the link to the user list page is placed on the homepage).
You should first provide a user list in your site (assuming it corresponds to user_list.php
). user_list.php
can output the name, tag, avatar, and link to the personal details page(such as user.php? id=10) and other contents. Then put the user list page into a page that can be reached by search engine crawlers, so that the crawler can follow each user's link to the personal details page to reach the corresponding user's details page on the user list page and include it. its information.
When a page is indexed by a search engine, the search engine will analyze the page content, such as the information in the head: title, keywords, description, etc., and tag the page (keywords
) according to its own rules, and assign corresponding The weight
. Assume that the keywords of a page included include 张三, and the corresponding weight is 100. The higher the weight, the higher the ranking. When you search for 张三 in a search engine, the search engine will sort all the pages in the library according to the weight of the keyword and other factors, and give priority to displaying links to pages with higher weights. If our page has the highest weight among the pages related to 张三 in the current database, our page will be displayed in the first result.
The above are extremely simplified analyses. If you want to realize your ideas well, knowledge of site SEO optimization is essential.
This is a relatively long, continuous accumulation and optimization process, referred to as SEO optimization. You can search for relevant information to learn more, it is not something that can be explained clearly in one or two sentences