search
HomeCMS TutorialPHPCMSHow phpcms generates static

How phpcms generates static

Dec 27, 2019 am 10:19 AM
phpcms

How phpcms generates static

How does phpcms generate static?

As we all know, search engines do not support dynamic pages very well, so in order to better include them in the rankings, we need to generate static pages from phpcms. So how should we generate static pages? How to generate static pages What are the rules?

Static is divided into "pure static" and "pseudo-static". Today we will talk about how to generate pure static for the entire site.

First, we need to set up static html generation. Let's enter In the phpcms V9 background, find the category column at: Content-Manage Column-Add Column (or manage the column, click the corresponding column to modify) and then click the second tab of the settings "Generate HTML Settings", select the column to generate html, and select " Yes", the content page generates html. Select "Yes"

Click to confirm the submission, and then update the column cache. For release management: batch update column pages and batch update content pages.

We can also customize url rules and url address optimization operations to make your url more in line with your aesthetics

Before customizing url rules, we need to briefly understand PC The html generation principle of v9:

The static page directory rules generated by Phpcms are generated according to URL rules. The static page content is phpcms\templates\default generated by the ob_clean front-end template file. Static page debugging: modify the static page , regenerate the static page and see the effect. You can also call the front-end control/index.php?m=openservice&c=index& a=openservice to modify the front-end template and then generate it.

As long as there are links to static pages, the files must be synchronized in time to prevent dead links and data errors.

In this regard, we can customize the url generation rules in the background extended url rule management. The specific location is: Backstage-Extended-url rule management

The default column generation rules are:

{$categorydir}{$catdir}/index.html|{$categorydir}{$catdir}/{$page}.html

When specifically generating html, it will be displayed as news/cmsyou/1000.html

We can change its generation rules according to our own needs to achieve the results we want

We recommend changing the article generation rules to:

{$categorydir}{$catdir}/{$id}.html|{$categorydir}{$catdir}/{$id}_{$page}.html

This change will not only facilitate management but also facilitate SEO operations.

Have you learned how to generate static in simple phpcms?

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of How phpcms generates static. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.