obsolete directives

This commit is contained in:
2025-11-16 22:00:14 +10:00
parent bc8f9149dc
commit c3b9482d35

View File

@@ -65,12 +65,12 @@
# Block access to .git directory # Block access to .git directory
RewriteRule .*\.git/.* - [L,R=404] RewriteRule .*\.git/.* - [L,R=404]
<If "%{HTTP_HOST} !~ /(\.local|^localhost(:\d+)?$)/"> # <If "%{HTTP_HOST} !~ /(\.local|^localhost(:\d+)?$)/">
# Force HTTPS and www in prod # # Force HTTPS and www in prod
RewriteCond %{HTTPS} off [OR] # RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.stemmechanics.com.au%{REQUEST_URI} [L,R=301] # RewriteRule ^ https://www.stemmechanics.com.au%{REQUEST_URI} [L,R=301]
</If> # </If>
# Handle Authorization Header # Handle Authorization Header
RewriteCond %{HTTP:Authorization} . RewriteCond %{HTTP:Authorization} .