44.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

04-04-2011, 03:16 PM (This post was last modified: 04-04-2011 03:17 PM by BlackhatSEO.)
Post: #1
[Tutorial] How to Make Your Own Mass URL Shortener
[Tutorial] How to Make Your Own Mass URL Shortener
first, head over to your favorite domain registrar. (godaddy, namecheap, enom, etc)

type in 2 random numbers and 1 random letter to get a 3-letter domain name. the cheapest 2-letter TLDs are .us and .me at around $8, and 90% of them aren't taken yet.
(or you can just get the .info you're broke and don't mind the 2 extra letters)
example: 4m5.us (uber-short!)

attach it to any ol' hosting. free hosting works just fine, as all we'll be doing is bouncing redirects off of it.

open up notepad and create this php file:
index.php
PHP Code:
PHP Code:
<?php 

$a 
= array( 

=> 'http://www.google.com',  
=> 'http://www.yahoo.com',  
=> 'http://www.ask.com',  
=> 'http://www.meatspin.com',  
=> 'http://www.blackhatworld.com',  

); 
  
header('Location: ' $a[$_SERVER['QUERY_STRING']]);  

?>
put the index.php at the root of your domain, and make sure to delete any index.html or index.htm files that may already be there.
then you can link your shortened urls like this: (where the number at the end is the index of the url you want to redirect to)
Code:

Code:
4m5.us?3


enjoy
06-07-2011, 06:50 AM
Post: #2
RE: [Tutorial] How to Make Your Own Mass URL Shortener
Short and simple - like it :)

for those that need some tracking and don't mind the extra time involved to set up the script

yourls.org might be a good choice - comes with softaculous too
03-21-2012, 09:31 PM
Post: #3
RE: [Tutorial] How to Make Your Own Mass URL Shortener
Thank you for your PHP script.
09-07-2012, 02:12 PM
Post: #4
RE:
Will Google bot crawl the page?




86.gif