Dede Seo for Article URLs optimize HTML static URLs optimize Seo

Source: Internet
Author: User

Method:

Select: website topic management, modify the topic's advanced options, and set the naming rule: {typedir}/{y} {m} {d}/{aid1_.html. This is the default status.

Changed to {typedir}/{pinyin}.html. I think {y} {m} {d} is useless, so it is also removed.

Update it again to see if it works?

 

We do not recommend that you use the following content because it will be modified to the PHP file. We do not recommend you modify the PHP file, or you do not recommend using typedir. In this way, multiple levels of directories are also recommended. <Br/> for the naming rules of my documents, refer to type_dir?_{pinyin=.html

 

Now zhanyouwangshishenmea_1.html is displayed, but _ 1 is added later. How can I remove this?

Modify the inc_channel_unit_function file in include,

Find $ articlerule = str_replace ("{pinyin}", getpinyin ($ title). "_". $ aid, $ articlerule), and remove. "_". $ aid.

 

If the title of an article is in English, _ is added between words, but _ is meaningless for GG. You must change it to "-". The modification method is as follows:

 

Open include/INC/inc_fun_funadmin.php

 

For ($ I = 0; $ I <$ slen; $ I ++ ){

If (ord ($ STR [$ I])> 0 × 80)

{

$ C = $ STR [$ I]. $ STR [$ I + 1];

$ I ++;

If (isset ($ pinyins [$ C]) {

If ($ ishead = 0) $ restr. = $ pinyins [$ C];

Else $ restr. = $ pinyins [$ C] [0];

} Else $ restr. = "-";

} Else if (eregi ("[a-z0-9]", $ STR [$ I]) {$ restr. = $ STR [$ I];}

Else {$ restr. = "-";}

}

 

Change

$ Restr. = "-";

 

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.