GZIP Code Working
-->
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Ref - http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/#postcomment
(Working)
EXPIRE HEADER Code Working
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A600
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType text/plain A86400
ExpiresByType application/x-shockwave-flash
A2592000
ExpiresByType video/x-flv A2592000
ExpiresByType application/pdf A2592000
ExpiresByType text/html A600
</IfModule>
Ref - http://www.tipsandtricks-hq.com/how-to-add-far-future-expires-headers-to-your-wordpress-site-1533
E-Tags Code Working
FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>
Ref - http://stuntsnippets.com/etags-htaccess/
NON-www to www
-->
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
Removing /index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\
/index\.(php|html) [NC]
RewriteRule ^index\.php$
http://www.yourdomain.com/ [R=301,L]
Ref
- (http://www.search-friendly-web-design.com/joomla/16-joomla-seo-htaccess-301-redirects-and-apache-modrewrite)
301 Error for Re-named Pages
redirect 301 /old/old.htm http://www.you.com/new.htm
Ref- http://www.isitebuild.com/301-redirect.htm
Render blocking CSS
Move the Blocking CSS below the </html>
htm<l/>
<link href="css/style.css" rel="stylesheet" type="text/css">
Render blocking CSS
Move the Blocking CSS below the </html>
htm<l/>
<link href="css/style.css" rel="stylesheet" type="text/css">
No comments:
Post a Comment