I'm trying to upload files to my domain that I'm hosting with Dreamhost. I connected to the server with FileZilla and I'm pretty sure I put the files in the right spot.
Their tutorial says to create a directory with your domain name like this: 'mydomain.com' and put your files in there. I put an index.html, p.css, register.php, login.php, and logout.php file in there. However, when I navigate to mydomain.com in Google Chrome, all I see is this:
Does anybody know what could be causing this? BTW I didn't actually create a directory called "mydomain.com" I used the domain I own.
UPDATE:
The directories are set up like this:
/
mydomain.com
public_html
register.php
main.css
logout.php
login.php
index.html
Try adding a file named
.htaccess
to yourpublic_html
directory. In this file, put the following line:Assuming the webserver is Apache (or a work-alike) this tells the server to send
index.html
whenever someone asks for/
.I finally figured it out. For some reason it wasn't working when the directory was labeled mydomain.com. I changed it to mydomain_com and it fixed it for whatever reason. Thank you to cevaris and Amazed for helping me.
Can you make sure you have group read permissions on the file you are attempting to fetch?
You want permission each file has a
755
permission, here is how you would change a file permission in FileZilla.Also, make sure everything is in the
public_html
file.