Clean up htaccess
This commit is contained in:
parent
0e5510a3c1
commit
2c59d563f9
|
@ -25,11 +25,11 @@
|
|||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteCond %{HTTPS} !=on
|
||||
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
||||
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
||||
</IfModule>
|
||||
# <IfModule mod_rewrite.c>
|
||||
# RewriteCond %{HTTPS} !=on
|
||||
# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
|
||||
# RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
|
||||
# </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?
|
||||
# Probably not.
|
||||
## 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
|
||||
|
@ -123,4 +123,4 @@ Options -Indexes
|
|||
<% if @site.config[:redirects] %>
|
||||
# Set up URL redirects<% @site.config[:redirects].each do |h| %>
|
||||
Redirect 301 <%= h[:from] %> <%= h[:to] %>
|
||||
<% end %><% end %>
|
||||
<% end %><% end %>
|
||||
|
|
Loading…
Reference in New Issue
Block a user