24
It’s a Small URL After All Bob Hazlett - @OneHalfAmazing Daniel Pritchett - @DPritchett

Making Your Own URL Shortening Service

Embed Size (px)

DESCRIPTION

It's a Small URL After All takes you through the process of using Yourls to create your own personalized URL shortening service similar to tinyurl.com and bit.ly. This deck was presented at BarCamp Memphis by Bob Hazlett of www.onehalfamazing.com and Daniel Pritchett of www.sharingatwork.com.

Citation preview

Page 1: Making Your Own URL Shortening Service

It’s a Small URL After All

Bob Hazlett - @OneHalfAmazingDaniel Pritchett - @DPritchett

Page 2: Making Your Own URL Shortening Service

A World of...

Laughter (funny how easy this is)

Tears (avoiding pitfalls)

Hopes (that this turns out awesome)

Fear (that you’ll mess something up)

Something to share (bragging to your buddies)

Page 3: Making Your Own URL Shortening Service

Why do something like this anyway?

BrandingStability & ControlMore customizationBuilt-in StatsPluginsDarn Cool

Page 4: Making Your Own URL Shortening Service

Supplies Needed

Domain Host Access to your files (FTP)Text Editor Download Yourls package

Page 5: Making Your Own URL Shortening Service

Picking a domain

Page 6: Making Your Own URL Shortening Service

Get your host onHosted

PHP 4.3 and MySQL 4.1 with “mod_rewrite” enabled

Mainstream packages from 1and1, DreamHost or GoDaddy will do

DIY ServerLAMP on Linux

WAMP on Windows

MAMP on Mac

Page 7: Making Your Own URL Shortening Service

Download YourlsYourls 1.4 available at yourls.org

Private or PublicCustomize your linksBookmarkletIntegrated StatsWordpress PluginOpen Source

Page 8: Making Your Own URL Shortening Service

Set up your database

Page 9: Making Your Own URL Shortening Service

Configure one fileYourls.zip > Includes > Config-sample.php

Page 10: Making Your Own URL Shortening Service

Fill in a little info

> http://mysql.domain.com> database name setup earlier

Page 11: Making Your Own URL Shortening Service

Just a bit more

> http://domain.com

> set up users

Page 12: Making Your Own URL Shortening Service

Save file as config.php

Page 13: Making Your Own URL Shortening Service

FTP files to serverYourls unzipped and configured package > FTP client > hostFTP clients

CyberDuck or Transmit (Mac)FireFTP (firefox add-on)WinSCP (Windows)

Page 14: Making Your Own URL Shortening Service

.htaccess fileIf installing on same domain as WordPress

Must be in different directory

Warning! Danger!

Page 15: Making Your Own URL Shortening Service

Finally Installed

Page 16: Making Your Own URL Shortening Service

Start making babies

Page 17: Making Your Own URL Shortening Service

Expand your world

Page 18: Making Your Own URL Shortening Service

I got stats

Page 19: Making Your Own URL Shortening Service

WordPress Plugin to Twitter

Generate short URLs for each new post or pageAuto tweet on your behalf as you publish new contenthttp://bhaze.com/5

Page 20: Making Your Own URL Shortening Service

Setting up on Tweetie 2

http://DOMAIN.com/yourls-api.php?username=MyUSERNAME&password=MYPASSWORD&action=shorturl&format=simple&url=%@

Page 21: Making Your Own URL Shortening Service

Hey, Cool Guy

Page 22: Making Your Own URL Shortening Service

Other ToolsBrowser Bookmarklet

Generates short URL from page you’re currently viewingSimple or Advanced, just drag to browser toolbar

WordPress Sidebar WidgetOffer shortening service to your users

Page 23: Making Your Own URL Shortening Service

Questions

Daniel Pritchett SharingAtWork.com

Bob HazlettOneHalfAmazing.com

Page 24: Making Your Own URL Shortening Service

Other Resources

Yourls.orgScreener.com/nTsDomai.nr and MakeWords.comLifehacker article - bhaze.com/3