陕西万象
- 陕西万象 评论了源码 Yii2.0 通用后台系统
学习乐于交流,本人亲测,如果是用的域名访问比如 abc.com访问 .htaccess 里面需要重写路由,(Scott_Huang 评论于 2015-04-08 23:15 )的是正确的,至少符合我的环境错误。
Options +FollowSymLinks
IndexIgnore /
RewriteEngine on
if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
otherwise forward it to index.php
RewriteRule . index.php
大家一定要根据错误的报告分析错误的愿因,采用对症下药的方法来解决自己的错误,每个人的错误环境都是不一样的。