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.