Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of generating catalogue by changing the map of weaving dream website

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The editor would like to share with you the method of weaving dream website map to change the generation directory. I hope you will gain a lot after reading this article. Let's discuss it together.

Weave dream site map how to change the generation directory?

Many friends who use DEDECMS as a site, in order to avoid leaking things in the data directory casually, the data directory is blocked in robots, but the default sitemap of DEDE is under data, so if you block this folder, the search engine will not be able to grab the sitemap, which is not conducive to SEO optimization, so is there a good way to put the sitemap generated by DEDE under the root directory of the system? Next, I would like to introduce to you the optimization method of DEDE sitemap.

Recommended study: dream weaving cms

Here are the detailed steps:

1. First, create a rss folder under the root of the website.

2. Modify / dede/makehtml_map.php file

Set

The code is as follows:

$cfg_cmspath. "/ data/sitemap.html"

Modified to:

The code is as follows:

$cfg_cmspath. "/ sitemap.html"

Set

The code is as follows:

$cfg_cmspath. "/ data/rssmap.html"

Modified to:

The code is as follows:

$cfg_cmspath. "/ rssmap.html"

3. Modify / include/arc.rssview.class.php file will

The code is as follows:

$murl = $GLOBALS ['cfg_cmspath']. "/ data/rss/". $this- > TypeID. ".xml"

Modified to:

The code is as follows:

$murl = $GLOBALS ['cfg_cmspath']. "/ rss/". $this- > TypeID. ".xml"

4. Modify / include/sitemap.class.php file

Put the following

The code is as follows:

$typelink = $GLOBALS ['cfg_cmsurl']. "/ data/rss/". $row- > id. ".xml"

Modified to:

The code is as follows:

$typelink = $GLOBALS ['cfg_cmsurl']. "/ rss/". $row- > id. ".xml"

At this time, when you go to the background of the site to generate the site map, it will be generated directly to the root of the site.

After reading this article, I believe you have a certain understanding of the method of weaving dream website map to change the generation directory, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report