搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Uploading .htaccess via FireFTP made website crash

  • 1 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 philipp

more options

I was trying to enable browser caching on my website, so I entered the following code in my .htaccess file

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##

When I updated it using fireftp, it caused the entire site to go blank. I then tried to replace it with the backup .htaccess I had created, and the problem remained. What am I doing wrong? Why does the backup version not work when it was working previously?

I was trying to enable browser caching on my website, so I entered the following code in my .htaccess file <pre><nowiki>## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month" </IfModule> ## EXPIRES CACHING ##</nowiki></pre> When I updated it using fireftp, it caused the entire site to go blank. I then tried to replace it with the backup .htaccess I had created, and the problem remained. What am I doing wrong? Why does the backup version not work when it was working previously?

由cor-el于修改

所有回复 (1)

more options

hi, support.mozilla.org is intended for end-user support. if you have a question regarding web development please refer to Where to go for developer support instead. thank you for your understanding!