天天看點

thinkphp項目 出現 Internal Server Error 錯誤原因分析

最可能的是.htaccess(重寫規則)檔案可能出現錯誤

可以參考thinkphp手冊的.htaccess(重寫規則)

錯誤資訊如下:顯示——内部伺服器錯誤(Internal Server Error)

thinkphp項目 出現 Internal Server Error 錯誤原因分析

thinkphp項目的.htaccess檔案正确為:(此方法隻針對tp架構項目,其他不一定适用,另說)

<span style="font-size:18px;"><IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule></span>
           

關于重寫規則的配置,參考下文即可:

位址為:http://www.win4000.com/course_detail_27842.html