Skip to content

Commit

Permalink
Revert "and conditional SIMPLEAUTH and https://www."
Browse files Browse the repository at this point in the history
This reverts commit d5a23b28292c299a19af467a7d4c3e5c3f9f2afa.

# Conflicts:
#	.htaccess
  • Loading branch information
mourique committed Dec 11, 2023
1 parent e55babf commit e0fd138
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# conditional SIMPLEAUTH and https://www.
# change values in uppercase
# needs a .htpasswd

<If "req('Host') == 'FIREKIT.COM'">
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www.FIREKIT.COM
RewriteRule ^(.*)$ https://www.FIREKIT.COM/$1 [R=301,L]
Require all granted
</If>

<ElseIf "req('Host') == 'DEV.FIREKIT.COM'">
AuthUserFile /home/FIREKIT/public_html/DEV.FIREKIT.COM/.htpasswd
AuthType Basic
AuthName "Password Protected"
Require valid-user
</ElseIf>

<Else>
</Else>

# Kirby .htaccess
# revision 2023-07-22

Expand Down

0 comments on commit e0fd138

Please sign in to comment.