.htaccess is a very valuable file for web developers. I can not get into it’s full functionality here, but it is basically responsible for a lot of directing back and forth, making links look pretty and so on.
Today I’m only going to talk about how to redirect to another website through it, like I redirect to my facebook page through http://jonathanmh.com/facebook or to my google plus account through http://jonathanmh.com/+ (because google plus still has these cryptic urls for users).
I didn’t come up with it, but I wrote a generator for it, which can be found here: .htaccess redirect generator. From there you can just copy and paste, upload it to your webspace and you’re done 🙂
# custom section for social media RedirectPermanent /twitter http://www.twitter.com/geronimo89 RedirectPermanent /facebook http://www.facebook.com/pages/JonathanMH/159526834122370 RedirectPermanent /+ https://plus.google.com/102608370090962018891/posts