the12 the12 - 2 months ago 6
HTML Question

Is there anyway to link to your homepage without the index (somesite.com vs somesite.com/index)?

I uploaded a site, and I'm trying to get the links to redirect to somesite.com instead of somesite.com/index. I've tried putting blank spaces, but it seems to stay on the current page. Is there anyway to accomplish this without putting the full URL?

Answer

You can use a / to access the root, like so:

<a href="/">Home</a>
Comments