Uploading an HTML file that could be accessed by website visitors

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
mirheanica
500 Command not understood
Posts: 1
Joined: 2023-10-20 19:10
First name: Mirhea Nica
Last name: Quijada

Uploading an HTML file that could be accessed by website visitors

#1 Post by mirheanica » 2023-10-20 19:13

Hi,

I tried uploading an HTML file. But I still couldn't figure it out. Whenever I try to access it by https:/HomepageURL/file.html, I get a 404 error. Can someone please help me?

User avatar
boco
Contributor
Posts: 26941
Joined: 2006-05-01 03:28
Location: Germany

Re: Uploading an HTML file that could be accessed by website visitors

#2 Post by boco » 2023-10-20 19:49

It needs to be in the web root on the server. The exact location varies between hosting providers, but is often named www or public_html. Other hosters simply use the root directory.

Important: Use all lowercase for the name, web servers do make a difference.

Proposal: Name your HTML file index.html, that's the name browsers actively try to load first, without you needing to write its name.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Uploading an HTML file that could be accessed by website visitors

#3 Post by botg » 2023-10-21 13:17

Proposal: Name your HTML file index.html, that's the name browsers actively try to load first, without you needing to write its name.
No. The name of the index document is chosen by the server, with the server redirecting, sometimes internally, sometimes externally to the index document.

Post Reply