How to make the dream CMS system more conducive to SEO

Source: Internet
Author: User
Keywords CMS system

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Dedecms system is the webmaster most use a CMS system, for the DEDECMS system, the framework of each link is very consistent with SEO, therefore, many webmasters use it to build stations, but the DEDECMS system is not to say there is no defect, here today, I would like to borrow admin5 this platform to talk about how the DEDECMS system is more conducive to SEO.

First, I want to say is the column page title, column generated after a lot of pages, and DEDECMS system default is the title of each page is the same, therefore, this is not conducive to SEO. The modified method is:

Where the DEDE5.7 need to be modified.

1. Delete $this->parsetempletsfirst ();

2. Add before $this->parsedmfields ($this->pageno,1);

$this->fields[' Pagexx ' = $this->pageno;

$this->parsetempletsfirst ();

DEDE5.6 and so on need to modify the place

1. Delete $this->parsetempletsfirst ();

2. Add before $this->parsedmfields ($this->pageno,1);

$this->fields[' Pagexx ' = $this->pageno;

$this->parsetempletsfirst ();

Note: This modification is only for static pages, that is, Web sites that generate Web pages such as HTML.

3. Modify the list page template, such as list_article.htm

In the original label between the add _ Dede:field.pagexx/} page, such as the bottom demonstration

Second, dedecms system generated by the site map files in the directory, and many webmasters want to pass the data folder Spider robots.txt, but also want to spider access to sitemap files, this time only need to carry out the following steps:

Modify the makehtml_map.php file under your Admin folder (default is Dede) under the root directory

_cmspath 17 rows of $cfg. /data/sitemap.html ";

To

$cfg _cmspath. " /sitemap.html ";

22 Lines of

$cfg _cmspath. " /data/rssmap.html ";

To

$cfg _cmspath. " /rssmap.html ";

17 lines is a normal site map, 22 lines are RSS site map

The site map file is generated to the root directory.

Third, now, search engine on tag attaches great importance to me to do the site tag page is included also a lot of, but also to bring some traffic, to solve the dream CMS (DEDECMS) tag list According to the latest release time, can effectively put the latest tag available to users and search engines.

Workaround:

Dream of the CMS directory,/include directory to find arc.taglist.class.php files, find code:

$this->dsql->setquery ("Select aid from ' dede_taglist ' where Tid = ' {$this->taginfos[' id ']} ' and arcrank>-1 Limit $limitstart, $getrow ");

Modified to:

$this->dsql->setquery ("Select aid from ' dede_taglist ' where Tid = ' {$this->taginfos[' id ']} ' and arcrank>-1 ORDER BY aid DESC limit $limitstart, $getrow ");

Well, today and everyone first to share these, the next time with dry goods to share together, this article by the Wuhan Male Hospital (http://www.whbdyy.com/) network compiled, reproduced please indicate the source.

Dedecms system is the webmaster most use a CMS system, for the DEDECMS system, the framework of each link is very consistent with SEO, therefore, many webmasters use it to build stations, but the DEDECMS system is not to say there is no defect, here today, I would like to borrow admin5 this platform to talk about how the DEDECMS system is more conducive to SEO.

First, I want to say is the column page title, column generated after a lot of pages, and DEDECMS system default is the title of each page is the same, therefore, this is not conducive to SEO. The modified method is:

Where the DEDE5.7 need to be modified.

1. Delete $this->parsetempletsfirst ();

2. Add before $this->parsedmfields ($this->pageno,1);

$this->fields[' Pagexx ' = $this->pageno;

$this->parsetempletsfirst ();

DEDE5.6 and so on need to modify the place

1. Delete $this->parsetempletsfirst ();

2. Add before $this->parsedmfields ($this->pageno,1);

$this->fields[' Pagexx ' = $this->pageno;

$this->parsetempletsfirst ();

Note: This modification is only for static pages, that is, Web sites that generate Web pages such as HTML.

3. Modify the list page template, such as list_article.htm

In the original label between the add _ Dede:field.pagexx/} page, such as the bottom demonstration

Second, dedecms system generated by the site map files in the directory, and many webmasters want to pass the data folder Spider robots.txt, but also want to spider access to sitemap files, this time only need to carry out the following steps:

Modify the makehtml_map.php file under your Admin folder (default is Dede) under the root directory

_cmspath 17 rows of $cfg. /data/sitemap.html ";

To

$cfg _cmspath. " /sitemap.html ";

22 Lines of

$cfg _cmspath. " /data/rssmap.html ";

To

$cfg _cmspath. " /rssmap.html ";

17 lines is a normal site map, 22 lines are RSS site map

The site map file is generated to the root directory.

Third, now, search engine on tag attaches great importance to me to do the site tag page is included also a lot of, but also to bring some traffic, to solve the dream CMS (DEDECMS) tag list According to the latest release time, can effectively put the latest tag available to users and search engines.

Workaround:

Dream of the CMS directory,/include directory to find arc.taglist.class.php files, find code:

$this->dsql->setquery ("Select aid from ' dede_taglist ' where Tid = ' {$this->taginfos[' id ']} ' and arcrank>-1 Limit $limitstart, $getrow ");

Modified to:

$this->dsql->setquery ("Select aid from ' dede_taglist ' where Tid = ' {$this->taginfos[' id ']} ' and arcrank>-1 ORDER BY aid DESC limit $limitstart, $getrow ");

Well, today and everyone first to share these, the next time with dry goods to share together, this article by the Wuhan Male Hospital (http://www.whbdyy.com/) network compiled, reproduced please indicate the source.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.