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

300
Visualizações
.htaccess is not being read using XAMPP

I cant figure out why the .htaccess file is not being read. I am using XAMPP

Here is the httpd.conf file

DocumentRoot "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

    Options None

    AllowOverride All

    Require all granted
</Directory>

I dont want content listing enabled except for one folder called photos. so inside the photos directory inside htdocs- using notepad i created a .htaccess file and included

#Allow the listing of folder content
Options All

This did not work and the error log shows:

Cannot serve directory C:/xampp/htdocs/photos/: No matching DirectoryIndex (home.php,home.html,home.htm,index.php,index.html,index.htm) found, and server-generated directory index forbidden by Options directive

I also added rubbish to the beginning of the access file to see if it would reproduce an error but all it says is 403 forbidden.

Other things i tried was

#Allow the listing of folder content
    Options Indexes

basically, for every folder there should be no content listing except for the photos folder which is why i created a .htaccess file and placed it inside the photo folders. (it must be a .htaccess)

any ideas why this is not working?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

To anyone who comes across this needing help - I figured it out.

notepad was saving it as .htaccess.txt even after selecting 'All Files'

To fix this used brackets (you can use another other software like notepad++) and saved it under .htaccess and that worked.

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