关于apache 配置tp5项目访问路由重写问题:
1.AllowOverride: 模块搜索对应的NONE 改成ALL
2.mod_rewrite.so 如果默认# 把它去掉 开启路由重写模块
3.index.php 同级是否有.htaccess 没有自己添加
Options +FollowSymlinks -Multiviews
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
大功告成 如果不行,看看端口占用,在就听天由命吧!!!!!