Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

406
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda