htaccess - Peter Coughlin

Wordpress, Htaccess and Mod Rewrite

A while ago I was wrapping my head around the intricacies of mod_rewrite, especially as it relates to WordPress. I've gotta say, it took me a long time to find the information that I needed, so here's the info that I would have liked, to maybe save you some trouble.

It all started because I was looking for an easy and simple (i.e. one that I can understand) way to automatically redirect any requests for "www.petercoughlin.com" to just "petercoughlin.com".

Why? Well, it was all about trying to avoid duplicate content. There are plenty of great articles out there explaining duplicate content and why it's not good, so I won't go over it here. True, the search engines are getting better at it, but they're not there yet. Read all of Wordpress, Htaccess and Mod Rewrite →