I have following two lines in .htaccess
file and I just want to know what do they do.
Options +FollowSymLinks Options +Indexes
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.
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.
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.
+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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With