>http://www.mysite.com/dan/1/mypage.html >http://www.mysite.com/dan/0001/mypage.html > >What is the correct regex to do this? I've tried the following: I've found that most people go straight to mod_rewrite when they don't really need to. Here is an example that may prove helpful for you. I use these to do much the same thing over at DNN, where my folder hierarchy changed. They don't require mod_rewrite. RedirectMatch /dnn/1998/98(.*)\.shtml$ http://www.disobey.com/dnn/1998/$1/index.shtml In your case, you can probably (untested) do: RedirectMatch /dan/(.*)$ http://www.mysite.com/dan/000$1 -- Morbus Iff ( i'm the droid you're looking for ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Tech: http://www.oreillynet.com/pub/au/779 - articles and weblog icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus