安装好,解决了首页报错的问题,访问页面上其他连接,全部报错,后台无法登录
可以很肯定是重写的问题,看了下下载的压缩包自带的apache重写规则,里面为空,于是补上thinkphp的重写规则
写入到public目录下的.htaccess文件中
<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>好了,页面可以访问了。当然,只是对apache有效,nginx可以自己找thinkphp的重写规则。