bsodmike's photostream @ www.flickr.com

Archive of articles classified as' "The Blog"

Back home

Handy .htaccess Rewrite Rule…

30/10/2009

I found this really handy rewrite rule, which redirects all traffic from the root folder to a specific subdomain page.

1
2
3
4
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^(www\.)?foo\.org$ [NC]
RewriteRule ^ http://blog.foo.org/ [R=301,L]

I decided to install WP inside the subdomain ‘blog’. This ensures my root directly is freed of the clutter that WP brings along with it.

No Comments

About

For the past couple years I lived in the UK, reading in BEng (Hons) Electronic and Computer Engineering at The University of Leeds and MSc (Dist) Mechatronics at King's College London.

My interests and hobbies include writing with Fountain Pens on various ink and paper, Swiss and German wristwatches, authoring articles in Mathematics, Physics, and Engineering, and Gundam modeling.

I have been following much Anime over the years as well as TV Shows with the likes of 24, Smallville, Dexter, and NCIS becoming favourites.