joined:Sept 30, 2009
I am trying to understand the difference between ForceType and AddType. They both appear to associate a MIME-type with an extension but ForceType's structure seems more robust.
If I don't need this robustness I'd prefer to use a simple tool for a simple job.
I'd like to have my server treat .html.gz files as text/html, but substituting the second block of code for the first in my .htaccess file causes the browser to stop displaying the page and instead downloads it. I appreciate they are two different blocks of code but I'm not understanding the subtleties between them, or if it is possible to modify the simpler second block of code to accomplish the same job as the first.
AddType text/html .html.gz