Clean up htaccess
This commit is contained in:
parent
0e5510a3c1
commit
2c59d563f9
|
@ -25,11 +25,11 @@
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
<IfModule mod_rewrite.c>
|
# <IfModule mod_rewrite.c>
|
||||||
RewriteCond %{HTTPS} !=on
|
# RewriteCond %{HTTPS} !=on
|
||||||
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
||||||
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
||||||
</IfModule>
|
# </IfModule>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ AddCharset utf-8 .html .css .js .xml .json .rss
|
||||||
# Do we want to advertise the exact version number of Apache we're running?
|
# Do we want to advertise the exact version number of Apache we're running?
|
||||||
# Probably not.
|
# Probably not.
|
||||||
## This can only be enabled if used in httpd.conf - It will not work in .htaccess
|
## This can only be enabled if used in httpd.conf - It will not work in .htaccess
|
||||||
ServerTokens Prod
|
# ServerTokens Prod
|
||||||
|
|
||||||
|
|
||||||
# "-Indexes" will have Apache block users from browsing folders without a default document
|
# "-Indexes" will have Apache block users from browsing folders without a default document
|
||||||
|
|
Loading…
Reference in New Issue
Block a user