plz help in .htaccess

jack sparrow

Verified User
Joined
Feb 3, 2010
Messages
41
Hello

i was try to add this in my file .htaccess

Code:
# Turn on Expires and set default to 0 
ExpiresActive On 
ExpiresDefault A0 
  
# Set up caching on media files for 1 year (forever?) 
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"> 
ExpiresDefault A29030400 
Header append Cache-Control "public" 
</FilesMatch> 
  
# Set up caching on media files for 1 week 
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$"> 
ExpiresDefault A604800 
Header append Cache-Control "public" 
</FilesMatch> 
  
# Set up 2 Hour caching on commonly updated files 
<FilesMatch "\.(xml|txt|html|js|css)$"> 
ExpiresDefault A7200 
Header append Cache-Control "proxy-revalidate" 
</FilesMatch> 
  
# Force no caching for dynamic files 
<FilesMatch "\.(php|cgi|pl|htm)$"> 
ExpiresActive Off 
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" 
Header set Pragma "no-cache" 
</FilesMatch>


i got internal server error 500 , is thier any way to fix it ?
or did u have any .htaccess code to cash the css and images ?
thank u
 
So look in the error log and see what the internal error is about.
 
this code was work perfect befor i buy a vps and install directadmin on it

so is there any thing i have to do to update the mode_wire or somthing?
 
I suppose this code is supposed to do something, but not being an expert in html (or specifically in .htaccess) I don't even know what it's supposed to do. And I'd bet neither does anyone else reading this. Note that you haven't mentioned a problem; just said that the code doesn't work.

So I don't even see a problem to solve.

What is mode_wire?

Jeff
 
Back
Top