Skip to content Skip to sidebar Skip to footer

How To Direct Website Host To Access `index.html` Inside A Folder

So I hosted my website but my index.html file is inside a folder so every time i search my domain i have to navigate through the file directory and open the index.html file to get

Solution 1:

There's a lot of solutions to this problem. But they all depend on your hosting situation. If you aren't controlling your server then this would make your website work as is.

Put an index.html inside the root folder With a barebones HTML file that contains a metaredirect

<metahttp-equiv="refresh"content="0;url=/folder_that_has_homepage" />

Honestly, I would probably just do a find and replace to fix your paths though.

Post a Comment for "How To Direct Website Host To Access `index.html` Inside A Folder"