qnn/qnnsafe.com-v1/master/.htaccess - Htaccess File

qnn/qnnsafe.com-v1/master/.htaccess

# DO NOT EDIT HERE! GO TO THIS PAGE: 请勿直接编辑!要更改,请前往:
# https://github.com/qnn/qnnsafe.com-v1/edit/master/.htaccess

# turn on redirection
RewriteEngine on

# old domain redirection
RewriteCond %{http_host} ^qnn.com.cn [nc]
RewriteRule ^(.*)$ http://www.qnnsafe.com/ [L,R=301]

# non-www redirects to www
RewriteCond %{http_host} ^qnnsafe.com [nc]
RewriteRule ^(.*)$ http://www.qnnsafe.com/$1 [L,R=301]

# redirect index.html to its folder
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.qnnsafe.com/$1 [R=301,L]

# compress html, js and css files
<ifmodule mod_deflate.c>
AddOutputFilter DEFLATE html js css
</ifmodule>

# remove useless header
Header unset X-UA-Compatible

# additional info
Header set Source "https://github.com/qnn/qnnsafe.com-v1.git"

On Github License

Files

Download PDF of Htaccess file
DEFLATE, THE_REQUEST

Comments

Apache