Forum Moderators: phranque

Message Too Old, No Replies

AllowOverride Directive

         

Lastwords

2:26 pm on Jul 2, 2007 (gmt 0)

10+ Year Member



If I want rewrite to take effect in a certain directory what directive-type do I need in my .htaccess file?

Fileinfo?
Options?
Or something else?

Thanks

jdMorgan

5:34 pm on Jul 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It depends of the server config. Options +FollowSymLinks or +SymLinksIfOwnerMatch are required to enable mod_rewrite, so this option must be set in either httpd.conf or AllowOverride Options will need to be set in httpd.conf, so that symlinks can be enabled with the Options directive in .htaccess.

You will definitely need the FileInfo override if you wish to change the URL-path using mod_alias or mod_rewrite.

The descriptions in the documentation for AllowOverride [httpd.apache.org] are fairly useful as to which overrides are needed to implement module functions in .htaccess.

Jim

Lastwords

11:26 am on Jul 3, 2007 (gmt 0)

10+ Year Member



Thanks Morgan, as useful as ever.