Character sets and languages
@@ -364,7 +366,7 @@ handler
might use:
- AddHandler cgi-script .cgi
+AddHandler cgi-script .cgi
Once that has been put into your httpd.conf file, any file containing
@@ -497,7 +499,7 @@ responses from the server
compress the output using mod_deflate.
- AddOutputFilter INCLUDES;DEFLATE shtml
+AddOutputFilter INCLUDES;DEFLATE shtml
If more than one filter is specified, they must be separated
@@ -568,16 +570,16 @@ type
Example
- AddType image/gif .gif
-
+AddType image/gif .gif
+
Or, to specify multiple file extensions in one directive:
Example
- AddType image/jpeg jpeg jpg jpe
-
+AddType image/jpeg jpeg jpg jpe
+
The extension argument is case-insensitive and can
@@ -586,15 +588,15 @@ type
extension argument will be compared against each of
them.
- A simmilar effect to mod_negotiation's
+
A similar effect to mod_negotiation's
LanguagePriority
can be achieved by qualifying a media-type with
qs
:
Example
- AddType application/rss+xml;qs=0.8 .xml
-
+AddType application/rss+xml;qs=0.8 .xml
+
This is useful in situations, e.g. when a client
@@ -681,7 +683,7 @@ a matching file with MultiViews
files:
- MultiviewsMatch Handlers Filters
+MultiviewsMatch Handlers Filters
MultiviewsMatch is not allowed in a
@@ -723,8 +725,8 @@ assigned a language-tag by some other means.
Example
- DefaultLanguage en
-
+DefaultLanguage en
+
mod_negotiation
@@ -749,8 +751,8 @@ components as part of the filename
Example
- ModMimeUsePathInfo On
-
+ModMimeUsePathInfo On
+
If you have a request for /index.php/foo.shtml
@@ -788,8 +790,8 @@ extensions
Example
- RemoveCharset .html .shtml
-
+RemoveCharset .html .shtml
+
@@ -856,14 +858,14 @@ extensions
/foo/.htaccess:
- AddHandler server-parsed .html
-
+AddHandler server-parsed .html
+
/foo/bar/.htaccess:
- RemoveHandler .html
-
+RemoveHandler .html
+
This has the effect of returning .html
files in
@@ -946,8 +948,8 @@ extensions
Example
- RemoveOutputFilter shtml
-
+RemoveOutputFilter shtml
+
AddOutputFilter
@@ -973,8 +975,8 @@ extensions
/foo/.htaccess:
- RemoveType .cgi
-
+RemoveType .cgi
+
This will remove any special handling of .cgi