Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Directory Listing


Go to End


2 Posts   886 Views

Avatar
soulrolll

Community Member, 9 Posts

14 May 2015 at 9:55am

Is there a way to enable directory listing on folder within SilverStripe.

I tryed 'Options +Indexes' in a htaccess file in the folder I want to list files from ( www.example.co.nz/resources/ ) however I get a Page not found.

http://viralpatel.net/blogs/htaccess-directory-listing-enable-disable-allow-deny-prevent-htaccess-directory-listing/ is basicly what I am trying to achieve

Any help would be much appreciated.

Avatar
Pyromanik

Community Member, 419 Posts

15 May 2015 at 12:10am

Edited: 15/05/2015 12:12am

You need to make an exemption to the rewrite rules for your indexed directories.
It's apache that makes the index, not SS.

To do it with SS you'd need to write some file system reading PHP. Nothing too complex, but requires the load of php, etc.
Added advantage of SS login backed auth though. 'SSO' or whatnot, if that's a concern in your scope.