• Background
    • Awards
    • Biography
    • Resume
  • Blog
    • Technical Support Blog
    • Cookie Policy
    • Galleries
      • Photo Gallery
      • Video Gallery
    • Glossary
  • Contact
    • Contact
    • Social Networks
  • IT
    • Downloads
      • Windows
    • Equipment
    • Hardware
    • Software
    • Testimonial
    • Information Technology
  • Projects
    • Business Projects
    • PC Projects
      • Hackintosh Laptop Projects
      • Hackintosh Desktop Projects
    • Website Projects
    • More Projects
  • Service Rates
    • Business Rates
    • Residential Rates

Custom Short URLs for a Website

Wednesday, April 24, 2013 Articles, Tips Comments Off on Custom Short URLs for a Website

In 2011, I needed an easy way to promote to one of my online projects on New York tourism to smartphone users and to do this, I needed to research how to create custom short URLs for a website.

Domain Name
My first task was to register (411ny.org) a shorter domain name then drop the following code into the .htaccess file in the root of the site.

# [ Custom Short URL ]

RewriteEngine on

RewriteRule ^/?$ http://411newyork.org [R=301,L]

RewriteRule ^(.*)$ https://bitly.com/$1 [R=301,NC]

# [ Custom Short URL ]

Bitly Pro Account
With the domain name registered, active, and loaded with the .htaccess file, it was time to register for a Bitly account so I can track stats and receive the API information to tie into my domain. Now, when a user types in 411ny.org/ZXMMS4 or http://411ny.org/1Q8pcfZ in the browser, they are redirected to this article and without having to pay enormous fees as what Amazon, Pepsi and news agencies would be paying.

The following two tabs change content below.
  • Bio
  • Latest Posts
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Stephan Pringle

Technology Support Specialist at Sipylus
About The Author: Stephan Pringle is an Information Technology Support Specialist. He covers hardware and software and provides tips for you to troubleshoot and repair issues on your own. In his spare time, he writes articles about the State of New York on his Hackintosh and HackBook and that has helped him to become the top contributor of the New York City section of Yahoo! Answers.
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Latest posts by Stephan Pringle (see all)

  • HP Color LaserJet Pro MFP M477fdw - Friday, April 14, 2023

Related posts:

  1. Clean Home Page URL
  2. Directory Index Filenames
  3. Fixing WWW Resolve Errors
  4. Microsoft Notepad
  5. cPanel Login with Custom Logo
  6. WHM Login with Custom Logo
  7. Webmail Login with Custom Logo
  8. Video–Production.com
  9. Block Traffic from URLOpener.com
  10. Domain Business Listing
  11. Protection against DDoS
  12. Protect Your Yahoo! Account
  13. Sell on Amazon
  14. Local Number on Your Resume
  15. Fixing a 400 Bad Request
  16. Index of /
  17. Domain Privacy
  18. Short USB Cable for Chromecast
  19. Editing an .htaccess File
  20. Vanity URL for LinkedIn Profiles

Comments are closed.




Copyright © 1990-2023 Stephan Pringle. All rights reserved.

The information contained on this website is for your personal use only.
It may not be reproduced in whole or in part, by any means, for dissemination without our written permission.

Stephan Pringle

Technical Support Specialist

  • Keyword Search

  • Topic Sponsor