deep links don't need full 'path' to access

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

deep links don't need full 'path' to access

Post by kermit »

did you know that a page buried deep within the site hierarchy ...

http://www.yourdomain.com/this/is/getti ... /the-page/

CAN be called up with just...

http://www.yourdomain.com/the-page/

could be kinda handy when giving out deep links, either verbally or when typing them out manually in email....

also note that when using "" or "/" as the page 'extension' -- it doesn't matter which is used to access the page directly.. they both work (here, anyway...):

http://www.yourdomain.com/the-page/
http://www.yourdomain.com/the-page

and here on my servers, yourdomain.com goes to www.yourdomain.com anyway (the other way around, too), so it could be even shorter:

yourdomain.com/the-page

(menus and selflinks are all "correct" (with hierarchy) on the resulting page, just like they're supposed to be)


this can eliminate confusion and errors when giving out links to your web site besides the site root.

of course, for search engines, directories, and other 'machine readable' purposes, the full and correct url should be used; as that's how cmsms builds its links when displaying selflinks and menus, and its how search engines will index content automatically.  but for casual link referrals, particularly over the phone, where short and simple is best, this is pretty sweet... whether ted intended it to be this way or not. ;)



(pretty url's enabled, mod_rewrite forced, 'default' htaccess, hierarchy on, page extension '/' or '' in this example)
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Post Reply

Return to “Tips and Tricks”