• Home
  • About Me
  • Contact
  • Things to do Before I Turn 30

the bofe blog

a twenty something IT professional with a few things to say

Feeds:
Posts
Comments

Cleaning up those MovableType 404s with mod_rewrite

November 10, 2006 by bofe

Long ago, I was running Movable Type with a link structure that looked like this:

http://www.bofe.org/archives/yyyy/mm/dd/entry-title

Then, I switched to wordpress which gives me this:

http://www.bofe.org/wp/yyyy/mm/dd/entry-title

Apache and mod_rewrite to the rescue.

Make a .htaccess file at the root level like this:

RewriteEngine On
ReWriteRule archives/(.*)/(.*)/(.*)/(.*) http://www.bofe.org/wp/$1/$2/$3/$4

Replace my domain with yours. Bliss!

Posted in Personal | Tagged Geek, Personal | 3 Comments

3 Responses

  1. on November 11, 2006 at 18:14 John

    ftw


  2. on November 14, 2006 at 00:38 drakar

    Hehe, excellent.


  3. on November 14, 2006 at 10:05 julia

    oh, hell no!

    and i notice you’re still in denial about my domain being “down”. ;)



Comments are closed.

  • Pages

    • About Me
    • Contact
    • Things to do Before I Turn 30
  • Recent Comments

    • Some Betty on Why the hate?
    • stinkypie on Why the hate?
    • stinkypie on Why the hate?
    • JohnO on Why the hate?
    • Yee on a pancake on Why the hate?
    • adam on Why the hate?
    • JohnO on Why the hate?
    • deezil on Why the hate?
    • Yee on a pancake on Why the hate?
    • Dave on Why the hate?
  • Recently Popular

    • Guide to Backing up your Virtual Machines with VMware Consolidated Backup (VCB)
    • Sync Google Calendar and Facebook Events
    • How to Use Excel 2007 and Goal Seek to calculate what the minimum grade you need on a final exam
    • VMware Consolidated Backup: Explained
    • Firefox 3 Constantly Crashes -- advice?
    • modifying osCommerce - [part 2 - Functions, Cases, Blocks Oh My]
    • Problem with Orphaned Users/Logins in SQL Server 2005 Migration
    • Facebook 12 Step Program
    • Sortables with Scriptaculous, PHP, and MySQL in 6 Easy Steps
    • point(x,y) versus point(lat, long) or What I Learned Today
  • Archives

  • Tags

    4815162342 advertising ajax apple bofehax byebye css dba delicious links development drm facebook finance firefox Geek gis Google imadork linux mememe Meta metoo money murray Music mysql owensboro Personal personal finance personalfinance philosophy php rss scriptaculous sqlserver sqlserver2005 Tablet PC Uncategorized vmware web Weblogs Web Standards whitewhine work wtf
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com

Blog at WordPress.com.

Theme: Mistylook by Sadish.