Description of Wordpress pseudo static and fixed link settings

One year ago (2023-11-08) Shallow singing
4 minutes
four hundred and sixty-three
one

What is pseudo static? First of all, we need to understand what a static page is. For example, we uploaded a test.html Web page file, we can access //hongchengtech.cn/test.html To browse it, this link can be called a static link.

So we can know that static web pages have real file paths. At the same time, using static files is also relatively friendly to search engines, because they are fast and stable to load. However, the obvious defect of static web pages is that it is not convenient to update the content wordpress Other commonly used frameworks do not support generating pure static files by default Pseudo static

Pseudo static means that the links displayed statically are preserved while dynamic script files are used. The above example is also used. At this time, we upload a test.php file in the root directory. Through the setting of pseudo static rules, you can also use the //hongchengtech.cn/test.html To access it, this is pseudo static.

Pseudo static rules of WordPress

The implementation of pseudo static is mainly achieved by configuring access rules for the server environment, but each student's method of configuring the environment is different. Here are some common configuration methods. If it still doesn't work, you can leave a message to us, and we will work together to find a solution.

NGINX environment

Usually in the root directory of the site nginx.htaccess File. Copy the following code to the file and save it, then restart the environment.

 location / { try_files $uri $uri/ /index.php?$ args; } rewrite /wp-admin$ $scheme://$host$uri/ permanent;

use pagoda perhaps phpstudy You can add this code to the panel and the software's own site management [Pseudo Static Settings] for saving.

Pagoda setting wordpress pseudo static

Apache environment

1. Modify the httpd.conf file in Apache.

This file is in apache Below conf Folder. open httpd.conf Files can be opened with Notepad. find LoadModule rewrite_module modules/mod_rewrite.so In this sentence, remove the # in front.

Then, replace all AllowOverride None in the file with AllowOverride Options FileInfo.

2. Modify the. htaccess file in the root directory of the website. If there is no. htaccess file, create one yourself.

Replace the original with the following code:

 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !- f RewriteCond %{REQUEST_FILENAME} !- d RewriteRule . / index.php [L] </IfModule> # END WordPress

The above two methods can solve the pseudo static setting of WordPress in most cases. After the pseudo static setting is completed, go to the WordPress background solid state link to modify it.

This article is written by: Shallow singing Published on Software Development of Little Turkey , please indicate the source for reprinting: //hongchengtech.cn/blog/317.html
Shallow singing
author

Related recommendations

One year ago (2023-10-29)

WordPress common fixed link (pseudo static) format

For friends who are familiar with SEO, the pseudo static page is undoubtedly helpful for website optimization, while the wordpress program itself is very user-friendly. After installing the program, set it in the background - fixed link - directly set it, and choose dynamic or static. For the customized structure of fixed link, the current national virtual host types are divided into linux and win
five hundred and thirty-two
zero
1 year ago (2024-02-20)

How does the WeChat management system manage enterprise WeChat chat content, and chat records of enterprise WeChat administrator permissions

Original title: How does the WeChat management system manage enterprise WeChat chat content How does the enterprise WeChat chat content manage enterprise WeChat chat content? Most WeChat chat content viewers on the market are for private viewing, but viewing WeChat chat content in enterprises is also particularly important. Without the use of WeChat management system, many behaviors such as abusing customers, flying orders, and randomly promising customers are
six hundred and sixty-two
zero
1 year ago (2024-02-20)

Liaocheng Chiping District Sub branch of Agricultural Development Bank of China carried out the second online exercise of the new generation credit management system, and how to do a good job in credit work as a member of Agricultural Development Bank of China

Recently, Chiping District Sub branch of Agricultural Development Bank of China actively implemented the second phase online exercise of the new generation credit management system. In accordance with the requirements of the overall exercise plan issued by the superior bank, it carefully deployed, carefully organized, clearly defined the division of labor, strengthened the coordination and linkage between various departments, closely cooperated, and effectively performed various work responsibilities during the exercise. Chiping District Sub branch organized all staff of the Customer Department to participate in the online drill
four hundred and ninety-one
zero
1 year ago (2024-02-18)

Content marketing is hard to do? Zhiqu Baichuan teaches you how to easily build a content management system, and what needs to be done well in content marketing

Two days ago, we received an official email "to Baichuan to remove from the salesforce app store" - because the United States issued an administrative order on August 6, 2020, prohibiting "any WeChat related transactions", which came into effect 45 days after the administrative order was issued (that is, September 20). The "one-stop marketing cloud" provided by Zhiqu Baichuan includes
three hundred and forty-one
zero

comment

0 people have participated in the review

Scan code to add WeChat

contact us

WeChat: Kuzhuti
Online consultation: