-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64a34dc
commit b339d68
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
htaccess/content-type-fuer-apple-app-site-association-datei-setzen/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
title: Content-Type für apple-app-site-association Datei setzen | ||
--- | ||
|
||
## Content-Type für "apple-app-site-association"-Datei setzen | ||
|
||
Wenn man den Content-Type für eine "apple-app-site-association"-Datei setzen möchte, dann kann man dies mitels einer der folgenden beiden Varianten tun: | ||
|
||
### Variante 1 | ||
|
||
``` | ||
<FilesMatch "^apple-app-site-association$"> | ||
ForceType application/json | ||
</FilesMatch> | ||
``` | ||
### Variante 2 | ||
|
||
``` | ||
RewriteEngine On | ||
RewriteRule ^apple-app-site-association$ - [env=apple:1] | ||
Header set Content-type application/json env=apple | ||
``` | ||
|
||
### Weiterführende Informationen | ||
|
||
- [Apache-Kernfunktionen: ForceType-Direktive](https://httpd.apache.org/docs/trunk/mod/core.html#forcetype){:target="_blank"} | ||
- [Apache Module mod_headers](https://httpd.apache.org/docs/trunk/mod/mod_headers.html){:target="_blank"} |