Dream CMS site document store path URL optimization settings

Source: Internet
Author: User

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

Dedecms self-study Tutorial 13: Dream CMS site document store path URL optimization settings, weaving Dream Bar original release.

1, store dream CMS site static Web page file directory, permissions set to write can not be executed, do not give permission to execute. It's important to remember that too many permissions can pose a security risk. Dream CMS Directory permissions set specific circumstances can be referred to: www.d8bbs.com/thread-19589-1-1.html.

2, in addition to static home index.html (under the root directory of the index.htm), the Dream CMS system generated other static files, mainly including column list page, document page (article, software, categories and other categories of content pages), feature pages, by default these are stored in directory a ( Topics are stored in the directory special). The file HMTL the default save path in the figure below, and it is recommended that you leave the default a.

  

Dedecms path URL optimization setting Figure 1

3, Next, we take the column "Industry News" as an example:

  

Dedecms path URL optimization setting Figure 3

Take a look at the store path for the "Industry News" section:

  

Dedecms Web site URL path optimization Figure 4

After build:

List page: http://www.xxx.com/news/

Content page: http://www.xxx.com/a/news/2012/0824/110.html

Obviously, the location of the content page is too long, there are many optimization space.

Open the column again-Advanced options, click the question mark following the article naming convention to see the variables supported by the system. With these variables, we can further refine the changes to the content page path, the file name of the content page. Here, we do the simplest setup, set to {typedir}/{aid}.html, that is, for column/article id.htm, the following figure:

  

Dedecms Path Optimization Figure 5

To update this column again, you can see the URL path of the content page, which has changed a lot:

List page: http://www.xxx.com/news/

Content page: http://www.xxx.com/a/news/110.html

4. It's enough to do the above step. However, if you change the column path later, the file stored in the column can not be accessed. If http://www.xxx.com/news/changed to http://www.xxx.com/xinwen/, the content page was updated again and became http://www.xxx.com/a/xinwen/110.html. How to do can not affect the column structure changes?

In fact, we can put all the document pages of the site, focus on the next folder in the root directory, such as directory aspires.

  

Dedecms Path Optimization Figure 6

As shown in Figure 6, the URL path to the column and document becomes:

List page: http://www.xxx.com/news/

Content page: http://www.xxx.com/article/110.html

Welcome to add DEDECMS8-QQ Group: 63671447 Exchange Learning. Transfer please keep the copyright dream

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.