What invalid pages will #discuz generate? What's the problem?
1. When accessing deleted posts and sections, a prompt information page indicating that the post does not exist will be returned.
2. If you set certain permissions to browse posts and sections, you will get a message that you do not have permission.
3. Prompt information pages in various other situations. These are all for users to see and have no real content.
The URLs of the above pages are still normal URLs, but the content is only for users to see, and there is no need for SE to include it. The biggest problem is the issue of duplicate content, such as posts without permission, a large number of deleted posts, and many different URLs, but the content is the same. These duplicate pages are of little use and are not friendly to SE. (In fact, if the content is deleted, 404 should be returned, but for the sake of simplicity, the solution is to add meta robots tags and prohibit ES inclusion)
#Modify the prompt information page, add meta robots to prohibit inclusion, and solve the problem of duplicate content.
Modify the showmessage function in the global.func.php file. In this function, add $extrahead .=''; after the line define('CACHE_FORBIDDEN', TRUE);.
At this point, all dz prompt pages have meta robots tags stating that inclusion is prohibited. SE will not include URLs that are not authorized to be accessed. For deleted posts, because inclusion is prohibited, they will be deleted from the index after a period of time. In this way, SE will be given web pages with content, which will be good for increasing the weight.
Author: SEO Xiaogong; Source: http://www.seo.banmutian.org/; All rights reserved. Please keep this statement and indicate the author, source, and original link http://seo.banmutian.org/thread when reprinting. -11-1-1.html