Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

relative link for directory above

I've got a file structure like so

Root
-index.html
-adirectory
 ->fileinthedirectory.html

I'd like to create a relative link from fileinthedirectory.html to index.html since /index.html links to /adirectory/index.html which doesn't exist.

like image 963
Skizit Avatar asked Jan 10 '11 15:01

Skizit


1 Answers

To go up one directory you can use:

 ../index.html

or you can start the URL with a slash to start from the root

 /index.html
like image 71
Vincent Ramdhanie Avatar answered Oct 04 '22 21:10

Vincent Ramdhanie