Focus on cloud service provider activities
Notes on website operation and maintenance

WordPress pseudo static setting method under Nginx and Apache engine environment

At present, we still use the WORDPRESS program when we build a website, and we use the pseudo static when we use the WP program. The pseudo static settings are different in different WEB environments. Generally, we use the Nginx and Apache engines. Here we simply record the pseudo static setting methods under these two engines.

1. Apache pseudo static settings

Generally, we use the Linux virtual host and the cpanel panel. The virtual host is usually an Apache engine. Then it is relatively simple for us to set pseudo static, and directly throw a. htaccess file in the root directory of the website.

 <IfModule mod_ rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !- f RewriteCond %{REQUEST_FILENAME} !- d RewriteRule . / index.php [L]  </IfModule>

In this way, we can set the fixed link in the background to Jingtian.

2. Nginx pseudo static setting

For Nginx pseudo static settings, we need to coordinate with the conf file settings.

 WordPress pseudo static setting method under Nginx and Apache engine environment

For example, if we use the pagoda panel NGINX environment, we need to set pseudo static in the current site, select the built-in WP pseudo static rules, and then set fixed links in the WP background.

Like( zero )
Do not reprint without permission: Lao Zuo's Notes » WordPress pseudo static setting method under Nginx and Apache engine environment


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge