Skip to content

Instantly share code, notes, and snippets.

@brendannee
Created November 3, 2011 17:41
Show Gist options
  • Save brendannee/1337152 to your computer and use it in GitHub Desktop.
Save brendannee/1337152 to your computer and use it in GitHub Desktop.
Redirect root domain of custom short URLs using bit.ly pro in .htaccess file
RewriteEngine on
RewriteRule ^/?$ http://511contracosta.org [L]
RewriteRule ^(.*)$ http://bit.ly/$1 [R=301,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment