In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to achieve phpStudy2018 Nginx to support WordPress custom links, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
It is only suitable for Windows local environment (not tried on the server). The default phpStudy2018 Nginx does not support WordPress custom links, which can be supported by modifying the configuration file.
Use the text editing tool to open the nginx.conf file in the PHPTutorial\ nginx\ conf directory, and make a backup before modification, so as to avoid modification errors and prevent phpStudy from starting.
Search autoindex on and find something like this:
Server {listen 80; server_name localhost; # charset koi8-r; # access_log logs/host.access.log main; root "I:/phpStudy/PHPTutorial/WWW"; location / {index index.html index.htm index.php l.php; autoindex on;}
When you add the setting code below it, there are two cases:
1. The WordPress program is installed directly in the PHPTutorial\ WWW directory:
If (- f $request_filename/index.html) {rewrite (. *) $1/index.html break;} if (- f $request_filename/index.php) {rewrite (. *) $1D index.php;} if (!-f $request_filename) {rewrite (. *) / index.php;}
2. The WordPress program is installed in the PHPTutorial\ WWW subdirectory, such as: wordpress:
If (- f $request_filename/wordpress/index.html) {rewrite (. *) $1/wordpress/index.html break;} if (- f $request_filename/wordpress/index.php) {rewrite (. *) $1 if (!-f $request_filename) {rewrite (. *) / wordpress/index.php;}
Change the wordpress to your subdirectory name.
Finally, restart phpStudy to see if the custom link can be opened.
The latest version of phpStudy is 8.0, and this method has not been tried in this version.
These are all the contents of how phpStudy2018 Nginx implements the method of supporting WordPress custom links. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.