RopeADope Posted June 18, 2010 Share Posted June 18, 2010 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) Quote Link to comment https://forums.phpfreaks.com/topic/205188-htaccess-not-changing-directoryindex-or-hiding-index/ Share on other sites More sharing options...
cags Posted June 18, 2010 Share Posted June 18, 2010 Been awhile since I've done it, but I think it should be Options -Indexes DirectoryIndex dashboard.php You shouldn't have to restart Apache as .htaccess are per-folder not per-server directives. Quote Link to comment https://forums.phpfreaks.com/topic/205188-htaccess-not-changing-directoryindex-or-hiding-index/#findComment-1074027 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.