摘要:
1. enablePrettyUrl yii2默认不支持类似 http://<domain>/site/error 的url格式,需要在config.php中启用 enablePrettyUrl 属性 2. 配置suffix 实现伪静态 *.html 需要在 config.php中配置 urlMan 阅读全文
摘要:
场景描述: 自定义wp主题中,添加了个关于页面(about.php) 。 目的: 顺利访问 http://<domain>/about.php 解决方案:在主题的functions.php文件中, 自定义重写规则 rewrite_rules Step 1. 添加 generate_rewrite_r 阅读全文