htaccess default index

  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Joined: Aug 16, 2003
  • Posts: 2297
  • Loc: UK - England
  • Status: Offline

Post July 24th, 2008, 2:39 pm

Hey all

I use
Code: [ Select ]
DirectoryIndex index.php
to change the index file on my shared hosting. The problem is, it is cascading down to all of the subfolders. Is there a way to stop this?

Thanks all
Codebuddies - Website Development Resource
|INCLUDE(), INCLUDE_ONCE(), REQUIRE() IN PHP | - / - |MICROSOFT CRM 4.0 ONCLICK EVENT WITHIN FORM |
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 24th, 2008, 2:39 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post July 24th, 2008, 3:13 pm

I've never seen an anti-inheritence directive of any sort, other than going into the subfolders and overriding it in those htaccess files.

However you can specify more than one file in that DirectoryIndex directive, which might work for you if there's no index.php in the subfolders.

Code: [ Select ]
DirectoryIndex index.php what-subfolders.use


The root would use index.php if it finds it, the subfolders would move on to the next option in the list if there's no index.php in the subfolders.

http://httpd.apache.org/docs/2.0/mod/mo ... ctoryindex
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 29 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.