Forbidden 404

benty2004

New member
Joined
Sep 11, 2007
Messages
4
hi iv setup a /pictures folder in public_html but i can not get it to list the pictures in ther i just get this can any one help me


Forbidden
You don't have permission to access /pictures on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.37 Server at www.cruelsworld.co.uk Port 80


i need it to do this http://diggers-sigs.xgservers.co.uk/

but all i get is this http://cruelsworld.co.uk/pictures
 
In your pictures directory, create a file called .htaccess (notice the . in front of the name). Then, paste the following code in the file:

Code:
Options +Indexes

Either a basic list of files can be shown, or a 'fancy' list including icons, file size, modification date and more. Add this to your .htaccess file to use the 'fancy' style:

Code:
IndexOptions +FancyIndexing

Let's say you have a directory with .jpg, .gif and .png image files. You only want the .png files to show in the directory listings. Add this line to your .htaccess file:

Code:
IndexIgnore *.gif *.jpg

I'm sure there are other options, but these are some of the basics. For more info about .htaccess files, do a search on Google. Hope this helps.
 
Back
Top