Practical dedecms Dream SEO optimization sharing

Source: Internet
Author: User

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

Dedecms is recognized in SEO optimization has done a very good CMS management system, the following said oneself in the use of Dedecms several optimization methods.

1. Enable the content absolute URL to start an absolute address, to prevent the site is mirrored, but also to prevent the weight of the site dispersed.

Methods: System-System basic parameters-core settings-(yes/No) support multi-site, open this post attachment, column connection, arclist content to enable the absolute URL:

The choice is OK, and http://www.XXX.cc/1.html this form after the opening.

2. Automatically add alt and Title attribute method to Dedecms picture

Locate the arc.archives.class.php file in the directory include Dreamweaver open for search:

Setting Global environment variables

$this->fields[' typename '] = $this->typelink->typeinfos[' TypeName '];

@SetSysEnv ($this->fields[' typeid '), $this->fields[' TypeName ', $this->fields[' id '], $this->fields[' Title '], ' archives ';

Add below this code:

$this->fields[' body '] = str_ireplace (Array (' alt= "', ' alt=\ '), ', $this->fields[' body ');

$this->fields[' body '] = preg_replace ("@ [\s]{0,}alt[\s]{0,}=[\" ' \s]{0,}[\s\s]{0,}[\ "' \s] @isU", "", $this-> fields[' body ']);

$this->fields[' body '] = Str_ireplace ("

fields[' title ']. " \ "", $this->fields[' body ']);

The code automatically adds alt and title attributes to the picture.

  

3. Site column page URL path optimization default of a directory is not conducive to optimization, you can remove.

System-System basic Parameters-Document HTML default save path: Here change to/Slash.

Site column Management-Add top columns-File save directory: Here fill in your favorite directory name.

  

Advanced options article naming rules here: I like {typedir}/{y}{m}/{aid}.html directory + years, generated

Http://www.xxx.com/news/201311/1.html this form of linking.

  

4. Article content title + column name + website name this helps to optimize

Templates-Default Template management-select article content page template article_article.htm file

In the head see Modify {dede:field.title/}_{dede:field.typename/}_{dede:global.cfg_webname/} save OK.

  

5. Automatically add anchor text to article keywords

Core-Document Keywords Maintenance-add keyword and link URL to fill in the article need to do keyword link name.

6. Add tag tag function to article content page

Templates-Default Template management-select article content page template article_article.htm file in browser

Find the following code for {dede:field.body/}

Tag Tags: {dede:tag row= ' sort= ' new ' getall= ' 0 '} [Field:tag/]{/dede:tag}

Fill in this code to automatically add tag tag function.

  

7. The website completes 1-3 target key words to write 3 labels, in the footer time navigation adds 1-3 target keywords to point to the homepage.

Above all is the website internal optimization method, completes the website content The renewal, is doing some website outside the chain construction and so on, then waits for the website ranking to ascend.

Provided by www.rmscgw.cc, please keep the link. Thank you!

Related Article

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.