/    Sign up×
Community /Pin to ProfileBookmark

Numerous Subfolders

I operate a rather large site that I had to organize logically so I could find what I need. The site has numerous folders and sub-folders up to 4 levels deep. And I am updating this site several times each day, so ease of operation is essential.

[url]www.domain.com/page1.php[/url]
[url]www.domain.com/folder1/page2.php[/url]
[url]www.domain.com/folder1/folder2/page3.php[/url]
[url]www.domain.com/folder1/folder2/folder3/page4.php[/url]

My problem is the navigation bar – I had been using the full URL, but that is affecting my visitor count. (I sell advertising on this site, so an accurate visitor count is essential).

I have not been able to construct the navigation bar so that it will work the same for page 1 as it does for page 4 without directing visitors to the full URL.

Is there something simple I’m overlooking?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonMay 27.2006 — You can leave out the domain by writing this:<a href="/folder1/folder2/folder3/page4.php">Page 4</a>That link will work from anywhere on the domain.

The first / means to start from the root of the site, a ./ means to start from the current directory and ../ means the parent directory, ../ can also be used multiple times to signify moving further and further up the tree.
Copy linkTweet thisAlerts:
@grandpaauthorMay 27.2006 — Sometimes you get involved too deeply that you forget the basics. Thanks.
Copy linkTweet thisAlerts:
@David_HarrisonMay 27.2006 — Happy to help. ?

But what I don't quite understand is why using the full URI affects visitor count. The browser will simply look at the href of the link and create the complete URI itself when a user activates a link, so it doesn't really matter which you use.
×

Success!

Help @grandpa spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...