1
我想使用谷歌分析的網站速度建議來優化我的網站,它給我的建議之一是在我的.htaccess文件中利用瀏覽器緩存。.htaccess打破我的網站
經過對.htaccess的一些研究後,我發現我的網站沒有一個。我創建了自己的.htaccess,並與下面的文字充滿它:
AllowOverride All
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
我上傳到我的網站,現在加載任何我的網站上的網頁時,我得到一個錯誤頁,上面寫着以下內容:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, [no address given] and inform them
of the time the error occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in the server error log.
任何想法可能會導致這種情況?我是新來的,所以任何幫助將不勝感激!
謝謝你解決了這個問題! – 2015-02-23 18:05:35
不客氣,很高興它解決了。 – anubhava 2015-02-23 18:14:24