1、检查 apache 配置的网站根目录是否正确(别小看这一项,越自信越可能出错)
2、检查根目录下 .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# mod_fcgid & php-cgi
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
# php5apache2_2.dll
#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
# 禁止文件访问
<FilesMatch “\.(?i:bak|inc|lib|sh|tpl|lbi|dwt|pdf|psd|zip|rar)$”>
order deny,allow
deny from all
</FilesMatch>
</IfModule>