Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the option FollowSymLinks and Indexes in .htaccess? [closed]

I have following two lines in .htaccess file and I just want to know what do they do.

Options +FollowSymLinks Options +Indexes 
like image 353
Yousuf Memon Avatar asked Oct 19 '12 11:10

Yousuf Memon


People also ask

What does the .htaccess command options indexes do?

The Indexes option sets whether you can "browse" the directory or not. If indexes is set to plus, and the directory has no index. html or index. php (of whatever) file, it will show the contents of the directory just like your filemanager would do.

What is Follow_symlinks?

FollowSymLinks is a directive in your web server configuration that tells your web server to follow so called symbolic links. As one would expect, FollowSymLinks is an acronym for Follow Symbolic Links. FollowSymLinks is a very important setting that plays a role in your website security.


2 Answers

FollowSymLinks means if a dir is a symbol link, follow the link

Indexes means a dir can be show as list if no index page.

like image 50
xfx Avatar answered Sep 24 '22 23:09

xfx


+FollowSymLinks makes Apache follow system symbolic links (shortcuts, if you would) in your file system.

+Indexes allows access to open folders within your file system, e.g. if you forgot to put an index.{ext_here} file down within a directory, +Indexes would allow list that directory's contents to the user.

like image 27
Daniel Noel-Davies Avatar answered Sep 24 '22 23:09

Daniel Noel-Davies