How To Redirect to a Website

  • Posted By: Bob Buskirk on April 16th, 2009
  • 13 Comments... What do you have to say?

After posting my new Twitter background I got a few e-mails from people asking me how I made www.BobBuskirk.com/facebook go to my facebook page. It is really a really easy thing to do and when you do it you are putting your brand first which is really important. Also it makes remembering URL’s really simple. No one wants to try and memorize someone’s facebook URL or any other long URL like that. So making a redirect using your blog or website is so much easier and like I said it’s putting your brand first so people will remember BobBuskirk.com. So there are a few different ways to actually do a redirect. I will go over just a couple in this small tutorial.

The redirect method I like the best is .htaccess redirect. On your webserver you should see a .htaccess file. If there is not one, just go ahead and create it. Then open it up to start editing. Here is the code that I am using for my redirects…

Redirect 301 /flickr http://www.flickr.com/photos/enigma5
Redirect 301 /facebook http://www.facebook.com/profile.php?id=64701175
Redirect 301 /linkedin http://www.linkedin.com/in/enigma5
Redirect 301 /twitter http://www.twitter.com/bobtv

You can see the coding is pretty simple and easy to use. You can make as many redirects as you want. Another really easy redirect method is the meta tag redirect. The only catch with this is you need to create a file for it to work. So if I wanted to use BobBuskirk.com/flickr with this method I would have to create a /flickr directory on my webserver and then add an index.htm file there with the following code in it.

< meta http-equiv="refresh" content="1; url=http://www.flickr.com/photos/enigma5" >

So when someone would go to BobBuskirk.com/flickr it would load the index.htm file then be directed to the appropriate page. The content=”1 is how many seconds till the redirect happens.

13 Responses to “How To Redirect to a Website”

  1. Best CSS Gallery said on April 17th, 2009 at 5:33 am

    Awesome, thank you

    [Reply]

  2. Jon said on April 19th, 2009 at 5:19 pm

    Everyone keep in mind a few things though. First is that if you are running in a Windows hosting environment, that IIS does a 302 redirect by default (a temporary redirect). Sites like Google won’t index these links properly because they are only for “temporary” redirects, like in the event of migrating services from one server to another.

    Lastly, avoid meta redirects unless they are your only option. Again, Google won’t index them properly and sometimes it may knock your site down because using a lot of meta redirects is usually an indicator that the site is doing something malicious.

    Good post Bob, sound like a decent idea for keeping all of your external sites in order.

    [Reply]

  3. Komodo Dragon said on April 20th, 2009 at 7:23 am

    Hi bob, do you know if its possible to achieve this redirect on wordpress? Without having to mess with the .htaccess?

    Thanks,

    Jean

    [Reply]

  4. Jon said on April 20th, 2009 at 8:50 am

    Jean, it may be possible but it is a much less effective method of redirecting because it is depending on code at the application level. An .htaccess redirect will continue to function even if something goes terribly wrong with your Wordpress installation.

    Just my $0.02.

    Jon’s last blog post..Subverting Large If Blocks To Do Your Bidding

    [Reply]

  5. Kitchen Cabinets said on April 21st, 2009 at 8:35 am

    Very insightful again Bob will be sure to look into doing this for my own site.

    [Reply]

  6. Ricky Peterson said on April 23rd, 2009 at 8:48 am

    I will surely Implement this on my website, thanks for sharing information it was really useful post from youe end.

    Ricky Peterson’s last blog post..Google monopoly unfavorable for web marketers

    [Reply]

  7. Komodo Dragon said on April 24th, 2009 at 2:57 am

    Thanks for the response Jon, I guess I was just being lazy with the wp fix, it does make more sense to do it the manual way. Thanks!

    Till then,

    Jean

    [Reply]

  8. portable color scanners said on April 27th, 2009 at 10:44 am

    yes,doind it manually really makes more sense to me also

    portable color scanners’s last blog post..What to Look at When Buying a Portable Color Scanner

    [Reply]

  9. Personal Injury Lawyers said on April 28th, 2009 at 6:14 am

    I think this is not possible.

    [Reply]

  10. AA @ Discount Airfares said on April 29th, 2009 at 10:42 pm

    Hey that’s a really sweet idea.

    I’m thinking or setting up redirects for all my twitter / facebook / myspace / youtube accounts etc.

    Much easier to put them on a business card that way.

    I really like this idea, thanks!

    [Reply]

  11. Personal Injury Lawyers said on May 6th, 2009 at 3:20 am

    I will consider your suggestion and try it out.

    [Reply]

  12. josh zehtabchi said on May 18th, 2009 at 10:54 pm

    great tips, i’ve been using the meta refresh for years. great shortcut!

    [Reply]

  13. Kitchen Cabinets said on June 9th, 2009 at 2:18 am

    wow great! now i know how redirecting works.

    [Reply]

  14. Twitter Comments

    Trackbacks

What do you think? Join the discussion...

How do I change my avatar?

Go to MyBlogLog.com and upload your preferred avatar.

CommentLuv Enabled

Blog Sponsors

Feeds



    Subscribe to my RSS Feed




Categories

Photos

Recent Comments

  • Build Email List: John Chow is one of the bloggers that makes good money blogging and who teaches how he does it in...
  • Build Email List: Hi Bob, I like the points you describe in this post. John Chow is making very good money from his...
  • Build Email List: Hi Bob, I think that the course will be worth it even if just for the value of the bonuses. Blog...
  • Build Your List: Hi Bob, If you are frustrated with not being able to find a blog that you enjoyed the next time you...
  • Coast guard gifts: I don’t know if the price increase is all over, or just where you are. But where I am,...

MyBlogLog