Solved

How to create URL shortener?

Posted on 2013-01-16
6
443 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

706 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

20 Experts available now in Live!

Get 1:1 Help Now