DeliciousStumbleUponTwitterFacebookRedditLinkedInSphinn It!

Do you wish you could use a shorter domain name with your Pretty Links? Take the www out of the beginning of your Pretty Links? Is the WordPress portion of your website in a sub-directory and would like your Pretty Links to come from the top level of your domain name? Well, Pretty Link Pro can help you solve any of these problems to make your Pretty Links as short as possible.

So, granted, there are some small hurdles to get through initially but you’ll find that it’s quite easy to put your short links on another domain name and continue to manage them from your wordpress admin — even if your wordpress blog is in a subdirectory of your website.

Here’s what you’ll need to do to get a custom short link working:

  1. Register or select a short domain name — for example if my blog’s domain name was example.com then you might try to register ex.com or something. If you’re just trying to get your short links to be created from your top level domain or want to eliminate the “www” in your short links then you could just use http://example.com as your short domain instead of your blog’s http://www.example.com/ or http://example.com/mycoolblog/ url.
  2. Set your short domain name to point at the top level of your website — Of course, if all you’re trying to do is get the wordpress path removed from your domain name you can skip this step (sub directory installs) because your short domain is just your top-level website’s domain name. But this is probably the trickiest part for most people … because they think they can just setup a domain name forward through their domain name service and it will work. Forwarding will not work — you have to set the nameservers & DNS of your short domain so that its settings are identical to those of your website’s main URL. Sometimes this will also entail configuring your webserver (for instance if you’re using apache, you’d add ex.com as a domain name alias) to accept the new domain name. You’ll know you’ve got this set up correctly when you can type http://ex.com and it will go to your website at http://example.com but your address bar still reads “http://ex.com” …
  3. Forward Short Link Requests – you only need to go through this step if your WordPress is installed in a sub-directory. Also — I’m quite sure this step won’t work on anything but an apache web server environment (if you don’t know what you’re running — it’s probably apache).
    1. Create a file with Notepad (on Windows) or TextMate (on Mac)
    2. Paste the following code into the file (this is just the standard rewrite stuff found in WordPress’ .htaccess file):
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /mycoolsubdir/index.php [L]
      </IfModule>
    3. Replace the word “mycoolsubdir” (above) with the actual path to your wordpress installation — for instance if my wordpress install was at http://example.com/myblog/ then you’d change that line above to read RewriteRule . /myblog/index.php [L] instead.
    4. Save this file as htaccess.txt
    5. Upload htaccess.txt to the top – level directory (Document Root) of your website via FTP.
    6. Re-name htaccess.txt to .htaccess
  4. Add your short domain to Pretty Link Pro — This one’s quite easy:
    1. Log into your WordPress admin (http://example.com/wp-admin)
    2. Go to “Pretty Link” -> “Pro Options” -> “Global Options”
    3. Check “Use an alternate Base Url for your Pretty Links”
    4. Add your short domain name in the “Pretty Link Base URL” text field
    5. Hit Save

That’s it! Okay — so that may seem a bit intimidating to some but it’s really not that bad and certainly easier than any alternative. And the best part is that once you get it setup you don’t have to mess with it again :)

Blair Williams

Blair Williams has been working as a Software Engineer and Internet Marketer for over a decade. He specializes in writing and leveraging Software drive explosive growth in Businesses of all sizes. He's an expert in WordPress, Ruby on Rails, Search Engine Optimization (SEO), Pay Per Click (PPC) Marketing, Website Strategy and New Media.

Blair is the author of the Pretty Link, Mingle & several other plugins for WordPress. Between them, Blair's plugins have been downloaded almost 200,000 times and are some of the most popular plugins for WordPress. In addition to these plugins, Blair has created Pretty Link Pro which is a premium upgrade to Pretty Link and provides a ton of useful features and premium support.

Twitter Comments

blairwilli @jenknox there is a way to use an alternate domain name for your Pretty Links -- this post may help: http://blairwilliams.com/syz
Re-Tweet | Reply | View Tweet
blairwilli @chrisWhite Yes - that feature is in Pretty Link Pro -- here's a blog post I just did about it: http://blairwilliams.com/syz ...
Re-Tweet | Reply | View Tweet
prettylink Create Even Shorter Links With Pretty Link Pro http://blairwilliams.com/syz (via @prettylink)
Re-Tweet | Reply | View Tweet
blairwilli Create Even Shorter Links With Pretty Link Pro http://blairwilliams.com/syz (via @prettylink)
Re-Tweet | Reply | View Tweet

Related posts:

  1. Don’t Use TinyURL – Create and Track Links from your WordPress Website
  2. How To Start Shrinking Links On Your Domain Name in 5 minutes: Pretty Link Introduction Video
  3. New Pretty Link Video Tutorials Added
  4. Customizing Pretty Link Options – Part 2
This entry was posted in How Tos, Pretty Link Pro, Pretty Link Pro, Tutorials and tagged , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

9 Comments

  1. Bob Koch
    Posted March 11, 2010 at 9:55 pm | Permalink

    Blair, great post! Question: I noticed your tweets include a http://blairwilliams.com/syz pretty link rather than a shortened domain like http://bw.com/syz Any particular reason why? It would save 10 characters on the tweet. Or is the full name (and branding) more important than the extra 10 characters? Your thoughts would be appreciated since I’m considering doing that on one of my blogs. Thanks!

    • Blair Williams
      Posted March 11, 2010 at 10:21 pm | Permalink

      Hahaha — touché — yeah, I haven’t quite gotten around to figuring out a short domain for my blog yet have I? I’ll give some thought as to what my shorter domain name should be and then make the switch. Oddly enough, the extra characters in my domain name have never really bothered me while sending tweets much … Although if my domain name were http://blair-williams-software-engineer-and-tinkerer.com I think I’d be *much* more motivated to say the least. :)

    • Posted March 12, 2010 at 4:40 pm | Permalink

      haha http://bla.ir/ is already taken by Tim!

  2. Bob Koch
    Posted March 11, 2010 at 11:02 pm | Permalink

    Hey, that wasn’t meant as a jab! I was just wondering if you thought the extra 10 characters were that big a deal. If it’s worth the effort for 10 characters on a tweet, then I’d go for it. If not, then I’ll stick with the full URL. Thanks! BTW, finding a shorter domain name as a URL replacement could be a challenge – a lot of the ones I looked at were taken already!

    • Posted March 12, 2010 at 4:43 pm | Permalink

      Bob maybe try a domain in Switzerland? http://ko.ch

    • Blair Williams
      Posted March 12, 2010 at 7:25 pm | Permalink

      Haha– I didn’t look at it as a jab either — I just thought it was funny. But yeah — I have to second rolograaf — ko.ch is a good one although it can be pricy to get 2 letter domains. I registered a 3 letter short domain with an .li extension but I’m not using it for anything because it doesn’t have any significance to my business. So maybe I should write an article on picking a short domain — that may be the bigger issue. Oh, and rolograaf — I already investigated bla.ir — even went to the iranian domain name registry — maybe I’ll hit him up a about it see if he’ll sell. :)

  3. Bob Koch
    Posted March 13, 2010 at 12:31 am | Permalink

    Every site I checked would not allow a 2 character domain name like http://ko.ch but I can get one that will save 9 characters off my website URL. Not a huge savings but would be unique and eye-catching. Not too pricey either, about $17 per year.

    Thanks Rolograaf for the idea on the .ch domain! Didn’t even think about that!

  4. Diamond
    Posted June 7, 2010 at 12:18 am | Permalink

    Quick question, will I need to be a Pretty Link Pro member to do this

    • Blair Williams
      Posted June 7, 2010 at 12:30 am | Permalink

      Yeah — to get this working requires a feature that is only found in Pretty Link Pro — the Alternate URL Configuration feature.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Get 6 Free Lessons

    Get 6 Free Video Lessons on Pretty Link:

    Name:
    Email:
  • Recent Comments

    • cartpauj: You can use pretty link to mask the affiliate link by just modifying the code they gave you. This should...
    • Ron: OK, I’ll just use my cj link and just bypass the pretty link. I wanted to use pretty link for the...
    • cartpauj: within the same pretty link, no. But why can’t you just leave the tracking pixel as is?
    • cartpauj: if you’re cloaking the entire affiliate link (including you id) then you can just leave it at...
    • Ron: Fantastic plugin! I’m unsure how I can utilize 3rd party pixels. Here’s the scenario: Site A links...