Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Personalized Links

Which website offers a pesonalized website post link? I know it's possible to find an international domain name for the purpose of this e.g. treehou.se/courses, treehou.se/blog10.

3 Answers

I belive thats what treehouse is doing as well. having a second domain to personalize these links. The way i would see it be done is having a database that has two values.

Keyword and URL And then when the user goes to treehou.se/blog the script would check for the keyword "blog" in the database and return the URL value and then redirect the user to the URL.

Also remember that you dont need a second server for this to work. as you can point the domain name to somewhere else in your installation/server than the root.

i.e teamtreehouse.com goes to ROOT folder "/" treehou.se goes to "/url_paster/"

Hey Paul,

There are a couple of ways you can do this. I have a personal short link domain that I have setup through bit.ly Pro. You can also modify a .htaccess file to do the link forwarding for you, but I use bit.ly because it's a tried and true, battle-tested solution. If you are interested in learning more check out this link to learn more about using bit.ly to manage your own customized short domain.

If you'd rather not use bit.ly, let me know, and I can dig up an example of a .htaccess file that manages your links for you.

Cheers,

J.T.

Edit:

Apparently bit.ly Pro has been rebranded and is now called bit.ly Enterprise; it's essentially the same thing, though.

Jim Hoskins
STAFF
Jim Hoskins
Treehouse Guest Teacher

Excellent answer J.T.

Treehouse has the trhou.se domain for shortening links both to things like our own blog posts, as well as resources mentioned in videos, since nobody wants to copy a 200 character url from a video.

We use bit.ly as our management system for our trhou.se domain. You could also roll your own web app to manage it as well. In fact building a link shortening tool is a great project to practice with. Conceptually it's very simple, you just need a database to translate short codes into full urls, and the ability to handle urls containing the short code and redirect to the full url.

I often use a link shortener as a learning app when I am learning about a new language or framework.