@@ -211,7 +211,7 @@ AddDefaultCharset utf-8
211211 Options +FollowSymlinks
212212 # Options +SymLinksIfOwnerMatch
213213 RewriteEngine On
214- # RewriteBase /
214+ RewriteBase /conditional-parser /
215215</IfModule >
216216
217217# ------------------------------------------------------------------------------
@@ -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# ##############################################################################
@@ -663,3 +663,13 @@ FileETag None
663663# SetOutputFilter INCLUDES
664664# </FilesMatch>
665665# </IfModule>
666+
667+ # ------------------------------------------------------------------------------
668+ # | Custom Rules |
669+ # ------------------------------------------------------------------------------
670+
671+ # Redirect /index.html to /
672+
673+ <IfModule mod_rewrite.c >
674+ RewriteRule ^(.*)index\.html$ $1 [R=301 ,L]
675+ </IfModule >
0 commit comments