Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

403
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda