Phpcms V9 Set How to modify the SEO title separator method

Source: Internet
Author: User

The Phpcms v9 title delimiter defaults to "-", if you set SEO title "Web Development", the title bar of the Web page is displayed "Web Development-Weblog Blog", it is said, "-" the separator is more friendly to Google search engine, but Baidu is more green Levin in the "_" separator, Perhaps it is more in line with the Chinese habit of use it. With the Google in the Chinese market, before long I read an article on the search engine in China market share of the report, Google accounted for only 6%, and Baidu accounted for 64%! So webmasters to do SEO optimization, the main purpose of the main is only to please Baidu.


How to phpcms v9 SEO title separator from "-" changed to "_" it? Here's how to modify it:

Open the phpcms/libs/functions/global.func.php file in the Site directory, locate the function SEO functions, and then locate the following statement:

The code is as follows Copy Code

seo[' title ' = (Isset ($title) &&!empty ($title) $title. '-': '). (Isset ($cat [' Setting '] [' meta_title ']) &&!empty ($cat [' Setting '] [' meta_title '])? $cat
[' Setting '] [' Meta_title ']. ' – ': (Isset ($cat [' catname ']) &&!empty ($cat [' catname ']) $cat [' CatName ']. '-': ');

Replace the "–" in the statement with "_", remembering that you want to modify the three places.

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.