Solved

How to create URL shortener?

Posted on 2013-01-16
6
452 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
  • 3
  • 3
6 Comments
 
LVL 52

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 52

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 52

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
setup wamp server for first time 2 67
Firebug on Firefox 50 2 127
What .NET URL re-routing tool did I use? 2 53
Wordpress plugins not working in html 3 19
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now