In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces WordPress how to increase the site map, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
First say a slogan: can be solved with code, resolutely do not use plug-ins!
WordPress's sitemap uses general generation tools, but cannot be used after generation. For example, I often use sitemapx to weave dreams, but I make a mistake when I put it in WordPress.
There are many plug-ins for WordPress to generate sitemaps. You can use Baidu to generate your own sitemaps. Here we mainly talk about code generation.
1. First, save the following code as sitemap.php and transfer it to the root of the website.
Daily 1.0 monthly 0.6 + 00:00 weekly 0.6 weekly 0.8 monthly 0.4
two。 Edit Nginx pseudo-static rules and add the following rules:
Rewrite ^ / sitemap.xml$ / sitemap.php last
3. Edit the .htaccess of the root directory of the site (if not, create a new txt document) and add the following rules:
RewriteRule ^ (sitemap)\ .xml$ $1.php
You can visit the website domain name + sitemap.xml directly.
Thank you for reading this article carefully. I hope the article "how to add WordPress website Map" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.