htaccess default index

  • Nucleo
  • SausagePorkPie
  • Mastermind
  • User avatar
  • Posts: 2297
  • Loc: UK - England

Post 3+ Months Ago

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
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

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

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 14 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.