Moldarin Posted December 19, 2006 Share Posted December 19, 2006 Hi,What is wrong with these cache settings in my .htaccess configuration file? I get a 500 error on my site when trying to implement them.[code]ExpiresActive On<Directory "/home/content/html/lib/images/"> AllowOverride Indexes ExpiresDefault "access 3 months"</Directory><Directory "/home/content/html/lib/script/"> AllowOverride Indexes ExpiresDefault "access 3 months"</Directory><Directory "/home/content/html/lib/style/"> AllowOverride Indexes ExpiresDefault "access 5 weeks"</Directory>[/code][i]Code from /home/content/html/.htaccess[/i] Quote Link to comment Share on other sites More sharing options...
Chronos Posted December 22, 2006 Share Posted December 22, 2006 As far as i know they <Directory> can't be used in .HTACCESS and should be in the HTTPD.conf file.Try this, and put the seperate .HTACCESS files in theire appropriate directories[code]ExpiresActive OnAllowOverride IndexesExpiresDefault "access 3 months"...[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.