Solved

How to create URL shortener?

Posted on 2013-01-16
6
459 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ASP.NET MVC 2 40
Eloquent ORM manual paginator defaults to simple 2 31
Please explain purpose of GZIP 4 37
Website Question - New Site 3 13
Knowledge base software has turned out to be a quite reliable method for storing information, promoting collaborative work and for sharing valuable input and solutions.However, some organizations are trying to develop a knowledge base that works wit…
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to count occurrences of each item in an array.

828 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