robertzo Posted March 18, 2021 Posted March 18, 2021 I made a subdomain and want to upload a file to the website. But whenever I upload a file to my website it shows a table full of a list of files (for example uploading a file to example.com named index.html it would just show a table full of files including the index.html file. It would only show my website when I type in example.com/index.html). I want to upload a file so that the home directory of the website can show my index.html (uploading an index.html to example.com wouldn't show a table but the actual index.html file).
OnEnemy Posted March 18, 2021 Posted March 18, 2021 Make sure you upload files to your public_html folder for them to be visible
robertzo Posted March 20, 2021 Author Posted March 20, 2021 Yeah, but then my file would only be visible if I go to the /index.html subdirectory. I want it to be visible in example.com not example.com/index.html
wolstech Posted March 20, 2021 Posted March 20, 2021 The file name is index.html... Example.com and example.com/index.html will show the same thing. The server automatically uses the index file when you visit the domain without a path after it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now