Designing Your Index Directory
- Started
- Last post
- 17 Responses
- surfito
I see my self uploading a lot of crap to my site all the time which doesnt need to be part of the main arquitecture of my site, in fact, i only have a splash there.
what i want to do is design the default index directory, have stylesheet for it.
how can i do that, does anybody know?
- surfito0
.
- sp0
well, you can either go in and edit the apache config and you can change everything there to customize the default one
or, you can download brian's "indexer" php app from http://www.lophty.com
:)
- surfito0
thanks a lot sp, been searching for a while with no luck. thanks.
- zachary0
How do you even display the default index directory?
- Biofreak0
that is something your server has to make active.
if you dont make an index.html file, then most default settings will allow the browser to see an index of that directory.
- zachary0
So I'd have to contact my host to set that up?
- sp0
by not having an "index" file there.
you can disable displaying the server directory in the apache config file, so your host may have that functionality turned off.
or, they may insert an index file automatically when the host is created...
i do believe it can bo overridden with an .htaccess file and some trickery, but i'm not sure on that one.
:)
if you can get into the httpd.conf file on your server, then you can find where the code is.
- zachary0
Yeah, I think I've tried to show it before by not uploading an index file but it didn't work...will talk to the host.
- unknown0
what do you mean you're not sure? you must be losing your touch heheh
;)
- sp0
keep in mind, you can download brian's indexer and it does the same thing, not too mention it's xhtml compliant and you can change the css display.
all that, without arguing with your host about security and trying to get them to change the server settings.
it could be, depending on how they run the host box, that changing the httpd.conf file would affect every site they host...so i doubt they will do that.
pretty much, if you don't pay for a dedicated server, then it's not going to happen.
:)
so, i would just use indexer. it's a fabulous little app.
and, if you want to take it further, on hotscripts.com they have uploader scripts with indexing...so you can upload files to it through a nifty little web panel...
- Biofreak0
haha, yea.
it is no big thing really. it should take your server about 45 seconds to crank up your shiz and click a little check in the little box and kinda like magic n stuff... BAM! there it is.
tell em to do it NOW and then shake your fist in the air. (not that anyone can see you, but it will make you feel more manly)
- zachary0
That's really worthless to me at this point though, as I have no real working knowledge of php whatsoever.....
Want to learn it, haven't had the time...I suck at code :(
Thanks anyway.
- sp0
but, you don't have to do anything. it's pre-packaged goodness, through and through.
:)
but, yea.
and, i guess i am loosing my touch...never could find out why that ftp connection blew over the lan...
he.
- surfito0
the root directory will only show depending on your host, and then being able to have some kind of stylesheet on it also depends on your host, i just realized that my host doeasnt allow that feature, all i have here is httacces. file, and have no idea if you can configure that through the httacces
- sp0
indexer is the 'index' file, though, so you don't have to configure anything for it...since it's php.
you just have to place it in every directory that you want to show structure on.
- surfito0
thanks a lot again xp, i know that, its just that my host doesnt let me bring php up, even tho i pay the same as a company that would allow me to have all kinds of scripts or whatever.
ive been planning to switch for a while because of that, i havent have time, tho i allready have a deal with another company im doing work for and got my service configured, i just gotta make the transfer, ill upload that there.
thanks tho. i just tought it could be done through httacces file.
- sp0
oh well. no prob.
:)