原访问方式

1,添加本地虚拟主机


2,tp5重写伪静态
2.1,打开httped.conf,修改mod_rewrite.so

2.2,在static下的.htaccess 创建规则

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule>

最后
以上就是跳跃台灯最近收集整理的关于thinkphp5之配置tp5重写伪静态的全部内容,更多相关thinkphp5之配置tp5重写伪静态内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复