500錯誤:Internal Server Error
按照老師的步驟:首先取消了 rewite.so前面的注釋
然后創(chuàng)建 .htaccess ?文件:
.htaccess 內(nèi)容:
然后刷新網(wǎng)頁顯示500錯誤:
百度查閱資料 查看了 apache 錯誤日志,錯誤日志有以下內(nèi)容:
[Fri Sep 11 15:46:38.806414 2015] [core:alert] [pid 8212:tid 880] [client 127.0.0.1:53500] D:/wamp/www/muke/.htaccess: Invalid command 'RewriteRule^(.*)$index.php/$1[QSA,PT,L]', perhaps misspelled or defined by a module not included in the server configuration
貌似是這個.htaccess 文件有錯誤,可是再三校對,真沒有發(fā)現(xiàn)語法錯誤;不知是什么原因
2016-07-26
我是在!-d !-f前面加了一個空格
2016-07-25
你文件名多寫了一個C
2015-11-15
我也出現(xiàn)同樣問題?。≈x謝
2015-09-11
已解決。寫法上有的空格沒有打上!。。。。。真是RLGL