让phpStudy2018Nginx支持WordPress自定义链接

   2025-07-24 admin00130

下面由wordpress教程栏目给大家介绍让phpstudy2018nginx支持wordpress自定义链接的方法,希望对需要的朋友有所帮助!

只适合Windows本地环境(服务器上没试过),默认phpStudy2018Nginx并不支持WordPress自定义链接,可以通过修改配置文件支持让其支持。

用文本编辑工具打开PHPTutorial\nginx\conf目录的nginx.conf文件,修改前做个备份,以免修改失误,造成phpStudy无法启动。

搜索autoindexon,找到类似:

server{listen80;server_namelocalhost;#charsetkoi8-r;#access_loglogs/host.access.logmain;root"I:/phpStudy/PHPTutorial/WWW";location/{indexindex.htmlindex.htmindex.phpl.php;autoindexon;}
 
举报收藏 0打赏 0评论 0
 
更多>同类资讯
推荐图文
推荐资讯
点击排行
网站首页  |  关于我们  |  联系方式  |  用户协议  |  隐私政策  |  版权声明  |  网站地图  |  RSS订阅
Powered By DESTOON