user-S
user-S

Reputation: 3089

accessing a file in the root folder from a subfolder

my folder structure is as follows:

sample/register

i have a file in sample folder named index.html .i want to redirect to this file from a file within register folder.how can i do that? this is what i have done.But the problem is that i have a file within register folder named index.html and its getting redirected to this folder.how do i mention the root folder?

<li><a id="register" href="index.html">Back</a></li>

Upvotes: 0

Views: 1778

Answers (1)

jj689
jj689

Reputation: 456

Depending on where your root folder is href="/index.html" may work or just going up one folder with href="../index.html"

Upvotes: 1

Related Questions