Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არავინ მოგთხოვთ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. თუ რამე საეჭვოს შეამჩნევთ, გთხოვთ გვაცნობოთ „დარღვევის მოხსენებით“.

ვრცლად

Uploading .htaccess via FireFTP made website crash

  • 1 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა philipp

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)

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!