user1849037
user1849037

Reputation: 9

New to HTML/PHP - trying to host site on a server, but when I go to link of my site, I get a directory of my own folders?

Yup, so that’s my question.

I am really new to html/php/web programming in general.

I am uploading my files on cyberduck - when I upload the html files, they get converted from code to actual text and images which are not even displayed properly. I think I’ve chmod’ed all my images, yet rather than images that show up, I get clickable text.

I am massively sorry if these sound like silly questions, but i would be really appreciative of any help!

Upvotes: 1

Views: 109

Answers (1)

Matzo
Matzo

Reputation: 94

  1. Make sure you've got a file called index with an extension of .html .htm or .php

  2. You shouldn't allow directory listing (unless you really want to), to remove this option you should add the line Options -Indexes to your .htaccess file. If you don't have such a file you can easily create one and upload it.

Upvotes: 1

Related Questions