How To Redirect to a Website
- 13 Comments... What do you have to say?
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.

- Posted in: Tech Related, The Net
- Subscribe to RSS








Awesome, thank you
[Reply]
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]
Hi bob, do you know if its possible to achieve this redirect on wordpress? Without having to mess with the .htaccess?
Thanks,
Jean
[Reply]
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]
Very insightful again Bob will be sure to look into doing this for my own site.
[Reply]
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]
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]
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]
I think this is not possible.
[Reply]
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]
I will consider your suggestion and try it out.
[Reply]
great tips, i’ve been using the meta refresh for years. great shortcut!
[Reply]
wow great! now i know how redirecting works.
[Reply]
Twitter Comments
Trackbacks