Jump to content

Recommended Posts

Posted

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).

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...