Monthly Archives: August 2017

Universal Links and Apple’s Cruelty

You may be interested in using Apple’s Universal Links. It is not too complicated, with one possible exception. Apple insists on the following:

  • You need a file named apple-app-site-association
  • The file name cannot have an extension
  • The file must be of type application/json
  • The file must reside in one of two directories that are likely to have other files of other types

The difficulty is in assigning a type of application/json to a single file without an extension. Here is the solution for .htaccess (thanks to my elder son!) for those hosting the file on an Apache server:

<Files apple-app-site-association>
ForceType application/json
</Files>