I would like to compress all css and js on my Dreamhost site, I have found suggestions on the web but none of them work. Does anyone have a working example of gzip running on a Dreamhost site?
相关问题
- Backbone.js PushState routes .htaccess only workin
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- What is this file in .htaccess?
- If statements in .htaccess files, to enable passwo
相关文章
- Multiple htaccess rewrite rule
- AWS ALB redirect to https
- rewrite urls for product name
- Fiddler doesn't decompress gzip responses
- Codeigniter remove index.php - htaccess localhost
- How can I build the regex to match a string NOT co
- Relative paths from file for img, a and header
- How to change the name of the directory in url in
This thread on the Dreamhost support forum looks like it has the info you want.
I'm a bit late to the game here in 2012, but I think this is still relevant. The "mod_gzip" method does not work in Dreamhost's .htaccess files any more. They seem to be using mod_deflate instead.
I removed the mod_gzip block and added the following to my .htaccess file:
This did the trick for me. You can also add other file types here in case you have things like XML or JSON - or something that falls outside the norm.
I've gone back and updated the Dreamhost wiki page to add this.
I haven't tried this yet. But, it might work
Source: http://wiki.dreamhost.com/Htaccess_tricks