Forum Moderators: phranque

Message Too Old, No Replies

AllowOverride Question

Need to set IndexIgnore in .htaccess

         

ci_design

11:22 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



I have IndexIgnore * set in my htaccess file and it works if I set AllowOverride to All in the httpd file.

I am wondering if I can set AllowOverride to something else other than All. I tried AllowOverride Indexes but it did not take.

The hosting provider won't allow us to set the httpd AllowOverride to All so I am trying to find an alternative setting.

thx for any input..

Philosopher

5:16 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmm...you tried

AllowOverride Indexes

and it didn't work?

Seems like that should have worked

[httpd.apache.org...]

Shows that as valid and exactly what you are looking for.

ci_design

7:50 pm on Jun 22, 2005 (gmt 0)

10+ Year Member



I am sure it must be my syntax. I would also think AllowOverride Indexes would work.

In my htaccess file I have

IndexIgnore *
<Directory />
Options FollowSymLinks
AllowOverride Indexes
</Directory>

Putting this in htaccess throws an Internal Server Error in the browser. The apache error log file says
".htaccess: <Directory not allowed here"

Removing the Directory directive and setting AllowOverride All in httpd works, but again I will not have access to httpd when the site goes live so I need something to work in htaccess.

jdMorgan

5:44 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Indeed, you cannot use <directory> containers inside .htaccess files. Since .htaccess files are executed in a per-directory context, it just can't work. Review your purpose for using <directory> here; It may not be necessary, or if it is, there is probably another .htaccess-compatible method to implement your required function.

Jim