@@ -235,11 +235,11 @@ AddDefaultCharset utf-8
235235
236236# Option 1: rewrite www.example.com → example.com
237237
238- <IfModule mod_rewrite.c >
239- RewriteCond %{HTTPS} !=on
240- RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
241- RewriteRule ^ http://%1%{REQUEST_URI} [R=301 ,L]
242- </IfModule >
238+ # <IfModule mod_rewrite.c>
239+ # RewriteCond %{HTTPS} !=on
240+ # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
241+ # RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
242+ # </IfModule>
243243
244244# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
245245
@@ -248,13 +248,13 @@ AddDefaultCharset utf-8
248248# Be aware that the following might not be a good idea if you use "real"
249249# subdomains for certain parts of your website.
250250
251- # <IfModule mod_rewrite.c>
252- # RewriteCond %{HTTPS} !=on
253- # RewriteCond %{HTTP_HOST} !^www\. [NC]
254- # RewriteCond %{SERVER_ADDR} !=127.0.0.1
255- # RewriteCond %{SERVER_ADDR} !=::1
256- # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
257- # </IfModule>
251+ <IfModule mod_rewrite.c >
252+ RewriteCond %{HTTPS} !=on
253+ RewriteCond %{HTTP_HOST} !^www\. [NC]
254+ RewriteCond %{SERVER_ADDR} !=127.0.0.1
255+ RewriteCond %{SERVER_ADDR} !=::1
256+ RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301 ,L]
257+ </IfModule >
258258
259259
260260# ##############################################################################
0 commit comments