Ask coding questions

← Back to all posts
I can't access this as a website
AlexanderKilsby (0)

It used to be a website hosted by replit, but now every time i try to access it as an independant website (as in seeing the product, not the code) the tab lags and i can't see anything. Can anyone help?

BD103 (126)

It's because you don't have an index.html. When you access a static-hosted website, the home page is index.html. Because you don't have one, the browser doesn't know what to do. Try that out!

(This is just some sample code that you could use)

<!DOCTYPE html>
  <link rel="stylesheet" href="/path/to/stylesheet.css">

    <li><a href="/Page.html">Page</a></li>
    <li><a href="/Starwars.html">Starwars</a></li>
    <!-- Etc. -->