Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iglvzx/IGalvez.Autoindex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIzzy Galvez <i@igalvez.net>2015-11-11 22:09:13 +0300
committerIzzy Galvez <i@igalvez.net>2015-11-11 22:09:13 +0300
commit86b2bd5bfd0aafae507eb2e0d516467cf84e16b4 (patch)
treef116a1d56600c00b2217d0a0c72e85c4f1806eb0
parentf4c8a3584bdee8b823aa882a83df3aec0d248247 (diff)
serve HTML as plain text
-rwxr-xr-x.htaccess5
1 files changed, 5 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 8973d0f..565d165 100755
--- a/.htaccess
+++ b/.htaccess
@@ -14,6 +14,11 @@ Options +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
+# Serve html as plain text
+<FilesMatch "(?i)\.(htm|html)$">
+ ForceType text/plain
+</FilesMatch>
+
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json
IndexOptions Charset=UTF-8