下面由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;}