How to optimize the implementation method of Zblog directory directory static

Source: Internet
Author: User

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

Now use Zblog Open source program to build a blog more and more people, z-blog to its simple and practical, full-featured and deeply loved by everyone, and SEO is also friendly, in recent days I have been in the optimization of their blog, mainly the static URL of some technical processing. We know that Zblog support the custom static log directory, support the generation of classification and the monthly archive of static home functions, which not only alleviates the pressure of the Web server, but also conducive to search engine spiders crawl, from the SEO aspect can say URL directory static processing is very important, But zblog default directory is to ASP for the suffix of the dynamic directory, we want to enable and do some directory static configuration can be, through Baidu search queries and friends, today finally Zblog directory static to deal with. I want to give some help to friends who don't know much about Zblog static directory configuration. Share, exchange and improve the purpose of this site.

First, enable the classification and monthly archive of static home.

What to do: Go to the site background---Click Site Settings Management---Click the tab ' static directory configuration and file rebuild Settings '---find the option ' Generate category and monthly archived static home '---Select the Small Box ("P" indicates that the box is selected)

Start configuring the static log directory

Find the "Custom static log directory Configuration" option, we can see that zblog by default is {%post%}, of course, we can customize according to our own needs. The bottom list shows what the different parameters mean. This is explained by setting the category alias and not setting the category alias.

1, did not set the category alias

In the absence of a taxonomy alias, the values represented by each parameter are:

1) {%post%} (also the default setting for Zblog): means to generate cat_1.html,cat_2.html in post directory ... Such a form.

2) {%category%}: Represents generating cat_1/cat_1.html,cat_2/cat_2.html in root directory ... Such a form.

3 fill in Blank or "/" means to generate cat_1.html,cat_2.html in the root directory ... Such a form.

4) Fill in {%post%}/{%category%} to generate cat_1/cat_1.html,cat_2/cat_2.html such as this form in the post directory.

5) Fill in {%category%}/{%post%} to represent such forms as cat_1/post/cat_1.html,cat_2/post/cat_2.html in the root directory.

6 ABC (can be arbitrarily filled, can be letters, numbers and/any combination), said: In the root directory to generate abc/cat_1.html,abc/cat_2.html ... such as such a form.

2, set the category alias

In the case where the category alias is set (assumed to be ab1,ab2,ab3, etc.), the arguments represent the following meanings:

1) {%post%} (also the default setting for Zblog): means to generate ab1.html,ab2.html in post directory ... such as such a form.

2) {%category%}: represents generating in root directory such as ab1/ab1.html,ab2/ab2.html ... Such a form.

3) Blank or "/" indicates that the root directory generates a ab1.html,ab2.html ... Such a form.

4) {%post%}/{%category%} represents the generation of ab1/ab1.html,ab2/ab2.html ... in the post directory. Such a form.

5) {%category%}/{%post%} represents the generation of such forms as ab1/post/ab1.html,ab2/post/ab2.html in the root directory.

6 ABC (optional, can be any combination of letters, numbers, and "/") that generates a form such as abc/ab1.html,abc/ab2.html in the root directory.

Represents a form that generates cat_1/post/cat_1.html,cat_2/post/cat_2.html in the root directory.

Third, open anonymous access categories and monthly archive of static home page

We know that this is not open in the default state of the Zblog, we need to open it.

Open step: Enter the background---Click Web Design Management---Click the "static directory configuration and file rebuild settings"---Select the option "Anonymous access classification and monthly archive Static home page", after opening anonymous access, the system will automatically generate a file in the category directory default.html, We can access the Default.html file under the directory just by accessing the directory name.

Note: Opening anonymous access requires that each category have its own separate directory, which requires the {%category%} parameter to be included.

Du Baohua SEO Blog using the "http://www.dubaohua.com/directory Name" (to set the category alias) Form.

Original article Source: http://www.xf16.com, reproduced Please indicate the source, thank you.

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.