Skip to content

Commit d5db2a8

Browse files
Adding .htaccess rule to redirect /index.html to /.
1 parent 514a4d2 commit d5db2a8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.htaccess

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
# ------------------------------------------------------------------------------
@@ -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

Comments
 (0)