Solved

Regarding Pointing to the right file on my webserver. Really simple question

Posted on 2008-06-19
3
163 Views
Last Modified: 2013-11-19
what is the code i put in an  a href tag to point backwards in my folder structure.

Example:

if i had the following folder structure on my webserver

main_folder   which had 2 folders in side it
             Let call them Images and Video

Inside the images folder lets say there is one more folder called GALLERY

and inside the gallery folder is an html page we will call three_folders_deep.html
 
so from my index page which is found in main folder i can link to the three_folders_deep.html page by simply putting in

<a= href"image/gallery/three_folders_deep.html>

With me so far I hope. Okay so my quesiton is that if im coding the links for the three_folders_deep.html page and i want to link back to other index pages or pictures found in the main_folder (i.e 2 folders backwards from where we are now)  what would the structure look like

you can use a simple <a href> tag to show me an example thanks you
0
Comment
Question by:djmichaelray
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

Expert Comment

by:hielo
ID: 21826216
<a= href"/image/gallery/three_folders_deep.htm"l>

make sure you put quotes around the value.
0
 

Author Comment

by:djmichaelray
ID: 21826232
thank you does the slash at the beggining in front of images change deping on how deep you go into folders?
0
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 21826261
The leading slash instructs the browser to start from the top-most folder. So no matter how deeply neested your current page is what I gave you should always find the image (if you did not mistyped the name).
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change how page is organized 3 35
CSS Scroll Center with Static Side. Like EE does. 2 28
Text color and background in a text box. 2 23
Ajax on ASP 2 34
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to dynamically set the form action using jQuery.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question