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