Home > database >  when people go to my website it shows all my files and not the landing page of my website
when people go to my website it shows all my files and not the landing page of my website

Time:04-29

when I go to my website directory it shows all my files and not to my landing page, is there a way to fix this? I have tried everything even looked through the internet without any clear response. I am close to finishing my website I only need to resolve this problem.

Thank you!

CodePudding user response:

The issue seems to be that you are not on the HTML file, but on the folder.


To fix this issue, you have to redirect yourself to the HTML landing page.

/ar/home.html

This should show your HTML landing page correctly rendered.


Tip: Normally, the main page is called index.html by convention. This can be helpful. For example, the Live Server extension on Visual Studio Code will automatically go to index.html if the file isn't specified. Other hosting services, like GitHub Pages, also do the same.

None of the extensions, IDEs and hosting services listed above are sponsored! They are just used for the sole purpose of examples.


In conclusion, you need to go to the HTML file, instead of the folder.

  •  Tags:  
  • html
  • Related