Tuesday, September 13, 2011

How do i change the display of a directory on a site?

If i open a directory on my site without an index file, it just shows all of the files in a list, it is really ugly. I want to be able to just change how that look but if i add another file i don't want to have to change any code. So just a recap... I want a self-updating index that i can design. Thanks in advance.How do i change the display of a directory on a site?
Add this to your .htaccess file



DirectoryIndex (your site index) index.php index.html





then create a .html file or a .php and name it index. Add this file to your directory. Then edit the file to show whatever you want.

No comments:

Post a Comment