刚将博客搬了家,发现原来的固定链接格式访问不到了 于是去查找关于固定链接解析的问题 发现如下代码,加载到站点的location规则中即可
location / { index index.html index.php; if (-d $request_filename){ rewrite ^/(.*)([^/])$ $1$2/ permanent; } if (-f $request_filename/index.php){ rewrite (.*) $1/index.php; } if (!-f $request_filename){ rewrite (.*) /index.php; } }一定要重启Lumanger操作系统
Lumanager设置WordPress站点的固定链接格式解析
相关推荐
- LoadRunner快速入门!看一遍就会了。(内含实例) - 知乎
- 免费1年服务器,部署个ChatGPT专属网页版! - 掘金
- Cursor 全自动代码生成器?你还没用过?接下来我就来介绍智能 AI 代码生成工具 Cursor 安装和使用 - 掘金
- EditPlus 格式化HTML JS CSS 教程及edtools分享链接_editplus html代码格式化_Seleey的博客-CSDN博客
- 转载editplus格式化js,xml等____附输入错误: 没有文件扩展“.js”的脚本引擎解决_jsformatter.js_大脑袋硕鼠的博客-CSDN博客
- Windows 取证之EVTX日志 - 合天网安实验室 - 博客园
- 在excel如何分割字符串?-excel-PHP中文网
- 玩转玩转WordPress上的数据库缓存插件Redis Object Cache- 知乎