Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

404
Views
rewrite file's MIME-Type in .htaccess isn't working

I want to upload an AASA (apple-app-site-association).
The problem I'm having is that I can't set the MIME-Type. I placed the file in the root / and the .well-known folder without an extension. After that I tried (like I did with success on an other hosting provider) to change the MIME-Type to application/json.

This is my .htaccess file:

RewriteEngine On

# BEGIN Thunermay (Admin)
# set apple-app-site-association as application/json for Apple's crawler
<Files "apple-app-site-association">
    ForceType 'application/json'
</Files>
# END Thunermay

When I used an AASA validator (this and this one), I can't get the right content-type. The second one shows me at least that the file is parsed but without a content-type:

No Redirect:              Pass
Content-type:             [] 
JSON Validation:          Pass
JSON Schema:              Pass

I don't know where my mistake in the .htaccess is nor do I know how to potentially debug the .htaccess

Thanks for help in advance!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Figured out an alternative:

Instead of using ForceType I used:

<Files "apple-app-site-association">
    Header set Content-type 'application/json'
</Files>

I don't know why the other alternative didn't work

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!