refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
35
public/.htaccess
Normal file
35
public/.htaccess
Normal file
@@ -0,0 +1,35 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
<IfModule mod_negotiation.c>
|
||||
Options -MultiViews -Indexes
|
||||
</IfModule>
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
# Redirect .well-known urls (https://en.wikipedia.org/wiki/List_of_/.well-known/_services_offered_by_webservers)
|
||||
RewriteCond %{REQUEST_URI} .well-known/carddav
|
||||
RewriteRule ^ /dav/ [L,R=301]
|
||||
|
||||
RewriteCond %{REQUEST_URI} .well-known/caldav
|
||||
RewriteRule ^ /dav/ [L,R=301]
|
||||
|
||||
RewriteCond %{REQUEST_URI} .well-known/security.txt
|
||||
RewriteRule ^ /security.txt [L,R=301]
|
||||
# old carddav url
|
||||
RewriteCond %{REQUEST_URI} /carddav/(.+)
|
||||
RewriteRule ^ /dav/%1 [L,R=301]
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !dav/*
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
RewriteRule ^ %1 [L,R=301]
|
||||
|
||||
# Handle Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user