Home Backend Development PHP Tutorial 怎么对PHPCMS V9的title标题进行SEO设置

怎么对PHPCMS V9的title标题进行SEO设置

Mar 21, 2017 pm 03:30 PM

    如何对PHPCMS V9的title标题进行SEO设置?

   之前朋友问我那款cms不错,我就介绍了phpcms v9,真的很简单强大,大站小站都非常的easy!

最近朋友问了个问题,说网站首页的标题可以控制,但是栏目页,内容页的标题非常的长,用户体验不好,然后研究了一下,其实真的很简单,懂点逻辑思维大家也都能懂了。

案例:设置好后,开始网站各个页面标题显示如下

首页标题:php中文网 - 奇趣严谨搞笑-php.cn-这是一个神奇的网站!

栏目标题:自然奇观-动物世界-大自然图片-海底世界-自然风光 - 奇趣自然 -  php中文网 - 奇趣严谨搞笑-php.cn-这是一个神奇的网站!

文章标题:一只哈士奇的愤怒独白,哈士奇忍够了! 奇趣自然 - php中文网 - 奇趣严谨搞笑-php.cn-这是一个神奇的网站!

================================

虽然在后台里头 “站点设置” -> “SEO配置" 里可以设置 首页标题 显示成 “php中文网  - 奇趣严谨搞笑-php.cn-这是一个神奇的网站!” 。

但是这样的话,栏目标题 也会跟着变动,即显示成 "奇趣自然 - php中文网 - 奇趣严谨搞笑-php.cn-这是一个神奇的网站!"  

相继的,文章标题 也会显示成 "一只哈士奇的愤怒独白,哈士奇忍够了! 奇趣自然 - php中文网 - 奇趣严谨搞笑-php.cn-这是一个神奇的网站!"

如果是这样的话,标题太长了。然后我朋友要改成下面的这种格式

首页标题:php中文网 - 奇趣严谨搞笑-qqzw-这是一个神奇的网站!

栏目标题:自然奇观-动物世界-大自然图片-海底世界-自然风光 - 奇趣自然 - php中文网

文章标题:一只哈士奇的愤怒独白,哈士奇忍够了!

修改模板文件header.html的改成

内容页的header要新建个模板,header_content.html,复制header.html的代码,把改成

修改show.html模板第一行,{template "content","header"}改成{template "content","header_content"}。

大功告成,更新下首页、栏目页、内容页。

以上就是怎么对PHPCMS V9的title标题进行SEO设置的内容,更多相关内容请关注PHP中文网(www.php.cn)!

相关文章:

PHPCMS V9 添加二级导航的思路详解

phpcms v9二次开发及使用中各种问题解决方案

PHPCMS V9二次开发自定义分页函数的方法

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to jump to the details page in phpcms How to jump to the details page in phpcms Jul 27, 2023 pm 05:23 PM

How to jump to the details page in phpcms: 1. Use the header function to generate a jump link; 2. Loop through the content list; 3. Get the title and details page link of the content; 4. Generate a jump link.

What framework is phpcms? What framework is phpcms? Apr 20, 2024 pm 10:51 PM

PHP CMS is a PHP-based open source content management system for managing website content. Its features include ease of use, powerful functionality, scalability, high security, and free open source. It can save time, improve website quality, enhance collaboration and reduce development costs, and is widely used in various websites such as news websites, blogs, corporate websites, e-commerce websites and community forums.

WeChat Login Integration Guide: PHPCMS Practical Combat WeChat Login Integration Guide: PHPCMS Practical Combat Mar 29, 2024 am 09:18 AM

Title: WeChat Login Integration Guide: PHPCMS in Action In today’s Internet era, social login has become one of the essential functions of a website. As one of the most popular social platforms in China, WeChat’s login function is also used by more and more websites. This article will introduce how to integrate the WeChat login function in the PHPCMS website and provide specific code examples. Step 1: Register a WeChat Open Platform Account First, we need to register a developer account on the WeChat Open Platform and apply for the corresponding development permissions. Log in [WeChat open platform]

what does title mean what does title mean Aug 04, 2023 am 11:18 AM

Title is the meaning that defines the title of the web page. It is located within the tag and is the text displayed in the title bar of the browser. Title is very important for the search engine optimization and user experience of the web page. When writing HTML web pages, you should pay attention to using relevant keywords and attractive descriptions to define the title element to attract more users to click and browse.

What is the meaning of title in HTML What is the meaning of title in HTML Mar 06, 2024 am 09:53 AM

The title in HTML displays the title tag of the web page, which allows the viewer to know what the current page is about, so each web page should have a separate title.

Isn't phpcms free? Isn't phpcms free? Mar 01, 2023 am 10:24 AM

phpcms is not completely free. phpcms is an open source cms system, but open source does not mean free. It has two versions: free version and commercial version. The free version is limited to personal non-commercial use, while the commercial version requires purchasing a license; individuals can use it for research, and if it is commercial application , you need to pay a certain fee.

What does phpcms mean? What does phpcms mean? Apr 20, 2024 pm 10:39 PM

PHPCMS is a free and open source content management system (CMS) that features: open source, modularity, flexibility, user-friendliness and community support. It can be used to create various types of websites, including corporate websites, e-commerce websites, blogs, and community forums. Technical requirements include: PHP 5.6 or higher, MySQL, MariaDB or PostgreSQL database, and Apache or Nginx web server.

What versions of phpcms are there? What versions of phpcms are there? Jun 14, 2023 pm 01:13 PM

There are two well-known versions of phpcms, namely: 1. phpCMS4, which supports custom URL rules. The website management background is beautiful and easy to use, and has many front-end plug-ins, which can freely expand functions; 2. phpCMS2008R1, which supports multi-language, multi-site management, and page The manager is convenient, flexible, very lightweight, and runs fast.

See all articles