Welcome Guest, Not a member yet? Register   Sign In
Check my .htaccess code please
#12

I hope someone can look at my current .htaccess code. I have some fonts on my server and Google PageSpeed is giving me some errors. I have enabled compression on the server side so I am not sure if some of the code is even necessary.

Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType text/css "access plus 14 days"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType text/javascript "access plus 14 days"
ExpiresByType application/x-javascript "access plus 14 days"
ExpiresByType image/ico "access plus 14 days"
ExpiresByType image/jpg "access plus 14 days"
ExpiresByType image/jpeg "access plus 14 days"
ExpiresByType image/gif "access plus 14 days"
ExpiresByType image/png "access plus 14 days"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType text/html "access plus 14 days"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
</IfModule>
## EXPIRES CACHING ##
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
Reply


Messages In This Thread
Check my .htaccess code please - by flaboi - 04-30-2016, 08:18 PM
RE: Check my .htaccess code please - by skunkbad - 04-30-2016, 11:02 PM
RE: Check my .htaccess code please - by InsiteFX - 05-01-2016, 03:58 AM
RE: Check my .htaccess code please - by flaboi - 05-01-2016, 09:44 AM
RE: Check my .htaccess code please - by InsiteFX - 05-01-2016, 11:52 AM
RE: Check my .htaccess code please - by nkhan - 05-01-2016, 12:06 PM
RE: Check my .htaccess code please - by flaboi - 09-08-2016, 08:00 PM
RE: Check my .htaccess code please - by InsiteFX - 09-09-2016, 04:59 AM
RE: Check my .htaccess code please - by flaboi - 09-09-2016, 09:14 AM
RE: Check my .htaccess code please - by InsiteFX - 09-09-2016, 12:08 PM
RE: Check my .htaccess code please - by flaboi - 09-11-2016, 07:42 AM
RE: Check my .htaccess code please - by flaboi - 09-29-2016, 11:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB