I'm having trouble linking to my subfolders. After I click on a subfolder, any subfolder's path would appear twice in the address/url.
Here's what happened (domain and subfolder names are made up)...
I went to directly to the subfolder:
www.mydomain.com/drinks
Clicked on the link to subsubsubfolder
Arrived at
www.mydomain.com/drinks/caffeine/coffee/
Clicked on the link to another subsubsubfolder...
Page won't load because the address was
www.mydomain.com/drinks/caffeine/coffee/caffeine/tea... when it was supposed to be
www.mydomain.com/drinks/caffeine/tea
I don't know if I'm linking the folders wrong. I tried typing out the full path, but that doesn't work. The repetition of subfolders in the address still happens when I do the same thing listed above.
At first, I linked those subfolders like this (they're supposed to be a part of the navigation bar, by the way):
Code:
<a href="caffeine/coffee">Milk</a>
<a href="caffeine/tea">Tea</a>
Then I tried:
Then I tried:
Code:
<a href="caffeine/coffee/index.php">Milk</a>
<a href="caffeine/tea/index.php">Tea</a>
Then I tried:
None worked. What am I doing wrong? Please help me.
Edit:
drinks, caffeine, coffee, and tea are all folders and they each have their own index.php file
here's how the folder hierarchy looks like:
public_html
|
drinks
|
caffeine
/ \
coffee tea
(there are a lot more folders actually xD )