handsome_tony - 2:22 pm on May 18, 2012 (gmt 0)
Hi again, Lucy
Thank you for your feedback. I really appreciate it.
Here is what I am trying to do in layman's terms with my .htaccess:
1) Hide my directory listing so that people can't browse through it.
* It seems like we have this one solved, thanks for that.
2) This code is courtesy of jdmorgan, who posted it here:
and is intended to replace the default Wordpress .htaccess code.
* I assume this is still valid and a better way to go?
3) The next section is my attempt to use gzip compression in order to satisfy Google Page Speed. I am not sure if this code covers everything that needs to be covered, or even if it's correct. But I do show an improved Google Page Speed score since I started using it.
Furthermore, I have been trying to figure out a way to use .htaccess to compress files for Amazon Cloudfront CDN, but I have not been able to accomplish that. I had to turn off the CDN service because the files were not being gzipped when using Origin Pull. Perhaps this topic is better suited for a different thread.
4) The next section ExpireHeaders is supposed to optimize the caching functions by giving different objects different expiration dates. I am wondering if it's possible to optimize these settings so that it's no longer necessary to use a caching plugin for Wordpress?
5) Cache Control Headers - pretty much the same purpose as in the previous point 4, which is to say optimizing caching for speed and faster site loading times.
6) Not sure about Etags, other than everything I read said to turn them off.
In summary, I am trying to optimize my site so that it loads faster and makes Google happy. This is done through gzip compression and then caching on both the browser side and the server side. I would like to incorporate a Content Delivery Network (CDN) like Amazon Cloudfront, but am at a loss as to how to make gzip compression work with .htaccess rules.
Again, I am at the mercy of those with greater knowledge on this board and I very much appreciate any wisdom and advice you can share.