Skip to content

Commit

Permalink
Add PR #1751 to update htaccess rule for better support of Lets Encrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancramerdesign committed Aug 4, 2016
1 parent 4d1386d commit 2c3c3ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htaccess.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ DirectoryIndex index.php index.html index.htm
# RewriteBase /~user/

# -----------------------------------------------------------------------------------------------
# 12. Access Restrictions: Keep web users out of dirs that begin with a period
# 12. Access Restrictions: Keep web users out of dirs that begin with a period,
# but let services like Lets Encrypt use the webroot authentication method.
# -----------------------------------------------------------------------------------------------

RewriteRule "(^|/)\." - [F]
RewriteRule "(^|/)\.(?!well-known)" - [F]

# -----------------------------------------------------------------------------------------------
# 13. OPTIONAL: Redirect users to the 'www.' version of the site (uncomment to enable).
Expand Down

0 comments on commit 2c3c3ab

Please sign in to comment.