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

149
Visualizações
Problem about .htaccess in request method

I'm testing my api. It success on GET and POST method. But another method such as PUT/DELETE/PATCH, the apache server reponse a 301 redirect pernamently to the same url use GET method.
This is my .htaccess file content is:

   RewriteEngine on
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^ index.php [L]
   RewriteRule !^(public/|index\.php) [NC,F]

This is log content for a respone:

::1 - - [13/Mar/2020:01:09:22 +0700] "LINK /mvc HTTP/1.1" 301 328 "-" "PostmanRuntime/7.23.0"
::1 - - [13/Mar/2020:01:09:22 +0700] "GET /mvc/ HTTP/1.1" 200 3 "http://localhost/mvc" "PostmanRuntime/7.23.0" 

Please help and explain the problem of my .htaccess. Thanks for all.

over 4 years ago · Santiago Trujillo
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