October 14, 201411 yr Hello, do you think there is anything I am missing with my .htaccess file. Thanks, <IfModule mod_expires.c> # Enable expirations ExpiresActive On # Default directive ExpiresDefault "access plus 1 month" # My favicon ExpiresByType image/x-icon "access plus 1 year" # Images ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" # CSS ExpiresByType text/css "access 1 month" # Javascript ExpiresByType application/javascript "access plus 1 year" </IfModule> # Redirect non-www urls to www RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.aspirationscotland\.co\.uk RewriteRule (.*) http://www.aspirationscotland.co.uk/$1 [R=301,L] # Deflate for speed AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript # Prevent image hot linking RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?aspirationscotland.co.uk/.*$ [NC] RewriteRule .(gif|jpg)$ http://www.aspirationscotland.co.uk/hotlink.gif [R,L] # Security <Files .htaccess> order allow,deny deny from all </Files>
October 16, 201411 yr I think you have covered it all mate, I can't think of anything missing ... maybe error pages (404 etc) unless controlled another way?
October 16, 201411 yr What does the 'deflate for speed' do? "The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network." Source
Create an account or sign in to comment