我已經完成了xampp的全新安裝,安裝後包含以下文件夾的htaccess
文件未顯示在我的瀏覽器中。.htaccess無法正常工作
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
它提供了500錯誤和服務器超載
發生這種情況時,我想在我的Zend應用程序執行的公用文件夾。
請向我建議我是否必須在我的xampp中進行任何修改,以使我的.htaccess
文件正確執行。
在此先感謝
apache錯誤日誌中有什麼錯誤? – sarnold 2011-03-22 11:04:05
你有沒有在Apache中啓用mod_rewrite模塊? – emaillenin 2011-03-22 11:06:47
apache的錯誤日誌是[Tue Mar 22 16:38:46 2011] [alert] [client 127.0.0.1] D:/xampp/htdocs/gowtham/test1/public/.htaccess:無效的命令'RewriteEngine',可能拼寫錯誤或由服務器配置中未包含的模塊定義,referer:http:// localhost/gowtham/ – oldrock 2011-03-22 11:11:12