http://www.gongzi.org/nginxstartwp-super-cache-mod_rewrite.html Original address
I struggled with this problem all afternoon and finally solved it.
But it was not in vain, I reviewed the Linux commands.
At first, I planned to use a wordpress plug-in to solve the problem, but then I tried WP Super Cache for a long time (I don’t know what happened) and it still didn’t work.
Finally, when I was helpless, I looked for an easier method (I didn’t believe it would work at first), and damn~ I actually solved it~~
Finally figured out two questions
1. Only apache has the mode_rewrite module, nginx does not have such a module.
2. nginx can use regular expression routing to solve the problem of WordPress fixed connections.
tips: View running processes and view the absolute path of the process
nginx -s reload (nginx restart command) and nginx is actually made by the Russians~
LNMP is a one-click installation package for Nginx, PHP, MySQL, phpMyAdmin, and eAccelerator written based on CentOS/Debian. The LNMP production environment can be easily installed on VPS or independent hosts.
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
The above introduces the configuration of mode_rewrite (fixed connection) when wordpress uses nginx as the server, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.