FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Proposal for new defaul public directory contents

Feed 8 posts, 5 voices

Avatar
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:

/public
    /index.html
    /images
        /index.html
    /stylesheets
        /index.html
        /styles.css

What I propose we turn it into:

 /public
    /.htaccess
    /images
    /layouts
        /normal
            /images
            /style.css
            /print.css

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.

 
Avatar
257 posts

I’ll second that. Although I would propose amending the site root’s htaccess to include a line:

IndexIgnore */*

This will stop all directory listing from the root up (which will also protect plugins / backend)

 
Avatar
1493 posts

Like it. And it partially resurrects an idea which was discussed in a previous thread.

 
Avatar
651 posts

@Andy.. I think just adding the line below would be enough:

-Indexes
 
Avatar
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?

 
Avatar
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. :-)

 
Avatar
541 posts

+1 mvdkleijn ;)

 
Avatar
1493 posts

+ some discussion in the thread attached to issue 77.

 
Avatar
651 posts

well.. discussion is a big word.. :-)