Jump to content

htaccess not changing DirectoryIndex or hiding index


RopeADope

Recommended Posts

Hi all.

 

This is my first time working with .htaccess files so I searched around, and didn't find anything helpful.  I'm trying to use an .htaccess file in a subdirectory of my document root to stop the browser from showing the document list.  I'm also trying to change the DirectoryIndex from the default to dashboard.php, but its not working.  Do I have to restart apache to have it recognize the .htaccess file?

 

.htaccess

Options -Index
DirectoryIndex dashboard.php

(dashboard.php and .htaccess are in the same directory)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.