Solved

How to create URL shortener?

Posted on 2013-01-16
6
484 Views
Last Modified: 2013-01-17
How is a URL shortener like this mhyatt.us/lfmo2D created?  It isn't using any of the popular shortening services.  He registered the domain and uses it for URL shortening to his other site.

Is this the way it is done? http://ent.bitly.com/auto_branding?hsCtaTracking=4d8d9c0c-2c0f-40c3-8105-7d5a4eadbc4c%7Cc680c709-66d1-4187-90fd-e592e3dcdc3b
0
Comment
Question by:brettr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 38785661
Depending  on your coding skills, not hard to make.  But http://code.google.com/p/yourls/   http://yourls.org/ and as a premium bitly offers a custom service.  https://bitly.com/
0
 

Author Comment

by:brettr
ID: 38785756
I'll give yours.org a try.  When they say

Copy user/config-sample.php to user/config.php

what user folder are they referring to?  I don't have this on my site.  Is that just the root folder?

--- EDIT ----
Ah, nevermind.  I see what they mean.
0
 

Author Comment

by:brettr
ID: 38785797
If I use the domain mysite.us for url shortening and redirect the root domain to my site, will that affect the shortener (yourls.org)?
0
ClickHouse in a General Analytical Workload

We have mentioned ClickHouse in some recent posts, where it showed excellent results.

In this article on Experts Exchange, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.

 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 38785813
I'm  not sure what your question is.  Each url gets a different code assigned.  Each example below would have a different code/url.

http://www.mysite.us
http://mysite.us
http://mysite.us/index.html
http://mysite.us/index.html?page=123
http://mysite.us/stuff/index.html
http://mysite.us/buynow.html
https://mysite.us/buynow.html
0
 

Author Comment

by:brettr
ID: 38785906
If my main site is mymainsite.com but I use mysite.us for the url shortener, when someone types in mysite.us, I want it to immediately redirect to mymainsite.com.  Will that root redirect mess up any of the url shortening?

For example, will these still work:

mysite.us/J89xl
mysite.us/32hxl
mysite.us/Tui9

where each of the above are codes for unique urls and will redirect those specific urls.
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 38785953
when someone types in mysite.us, I want it to immediately redirect to mymainsite.com
 You would just use a 301 redirect for that.
0

Featured Post

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question