Forum Moderators: coopster
Here are the solutions I have come up with:
OPTION 1: Use "base href" in the head and set it to the main folder. However, it causes links to get odd when you are 4 folders/levels down and you want to link an image as "/image.jpg" but you have to do it as "/level1/level2/level3/level4/image.jpg" because all links originate at your base or root folder.
OPTION 2: Use full urls on all of the nav links (ie. [mysite.com...] [mysite.com...] etc.)
OPTION 3: Put every page in the root folder so they are always relative to the top level nav links, however this gets quite messy with a lot of files.
So how do you guys do it? I am guessing Option 2, but I was wondering if there is a better way?
Thanks!
For example, at the root level when you click on "/page1" the link takes you to the file within the page 1 folder. Since the nav urls are now one level down, clicking on "/page2" will now take you to "/page1/page2" instead of the intended "/page2".
Are you sure this is the behavior you are getting? This seems correct to me:
/page2 should translate into http://www.example.com/page2 because the / represents the server root. If you omitted the slash THEN you would get the behavior you are describing.