Proposal for new defaul public directory contents
|
651 posts
|
I’d like to propose a new default contents for the public directory. I’ll describe what it is now and what I propose it to become: What it is now:
What I propose we turn it into:
As you can see, I’m basically proposing to remove the index.html files since these are only usefull in case the HTTP server admin has not turned off the Indexes option. Instead, I’d like to add a .htaccess file which explicitly turns off the Indexes option. Also, I’d like to put the default normal layout (and suggest to put all other layouts) in a layouts subdirectory for easy maintenance. |
|
257 posts
|
I’ll second that. Although I would propose amending the site root’s htaccess to include a line:
This will stop all directory listing from the root up (which will also protect plugins / backend) |
|
1493 posts
|
Like it. And it partially resurrects an idea which was discussed in a previous thread. |
|
651 posts
|
@Andy.. I think just adding the line below would be enough: |
|
486 posts
|
yeah glad to see the layouts in there. does that mean we no longer have to include the layout via the gui? it will be automatically discovered? |
|
651 posts
|
Sorry ricks… :-) nope it doesn’t mean that… however, if we more or less “standardize” this now, we may include something like what you’re describing more easily later. Whether or not we do something like what you’re describing later doesn’t matter. Consistency and standardization are almost always preferred to no standard. We currently have no single preferred standard for storing multiple layouts in the public directory. So I propose one here. :-) |
|
541 posts
|
+1 mvdkleijn ;) |
|
1493 posts
|
+ some discussion in the thread attached to issue 77. |
|
651 posts
|
well.. discussion is a big word.. :-) |