How to link files in different folders?

1

I'm having trouble linking two HTML pages, the folder hierarchy is this:

Iwanttolinktothefile:

J:\Totem_App\XPLACES\access\cid_vitoria\1_acru.html

<ahref="/../../00_menu_vitoria_xingu.html" target="_parent" 
class="bcontraste">LINK</a>

It turns out that this way I'm having a " page not found " I'm going back two directories right? Using:

/../../ 

? Because it returns 2 directories the 'cid_vitoria' and then the 'acess', so what is the functional way of linking the files?

    
asked by anonymous 26.01.2018 / 13:42

1 answer

1

So try% w / w% that should work. The file is in the third folder up , so the href="./../../00_menu_vitoria_xingu.html" extra in the path that points to the location itself.

Here's an explanation. about the path of the files.

See this small snippet of an answer in another question

  • If the path starts with ./ or ../ then they will be removed from the prefix:

    ./../a/b/c

  • If the path begins with a/b/c , /./ they will be replaced by /../

    //./a/b/c

  • If you end with /a/b/c , /. , /./ will remove /.. and /. :

    /../a/b/c/.. and /a/b/c//a/b/c/.

  • If you end with /a/b/c/ and /./ you will remove an item:

    /..//a/b/c/../

  • If /a/b/ is in the middle it will remove the prefix (similar to explanation 4):

    /..//a/b/../c/

  • If /a/c/ is in the middle it will have the same behavior as explanation 2:

    .//a/b/./c/

  •   

    Some extra details on Path for folder access html, css, php etc

    Of course, reading RFC 3986 is a bit difficult, even for those who already have some experience, some of the examples I've done with tests, to summarize the /a/b/c/ would be to go up one level (if it is not in the prefix) and .. would be to point the location itself.

    Credit to: Guilherme Nascimento link

    So disregard this option rss

        
    26.01.2018 / 15:07