[wp-hackers] Moved from BlogWare to WordPress - Need Help

Mark Jaquith mark.wordpress at txfx.net
Sat May 20 05:48:03 GMT 2006


On May 20, 2006, at 1:29 AM, Chris Pirillo wrote:

> It's just figuring out the right
> sequence / regular expression to use.

Put this in your site root's .htaccess

Note: make sure it is ABOVE the WordPress block or it won't work.

> # Make sure mod_rewrite is ready to go
> RewriteEngine On
> RewriteBase /
>
> # redirect URLs like /blog/_archives/2006/2/23/1780165.html to / 
> 2006/2/23/
> RewriteRule ^blog/_archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?  
> http://chris.pirillo.com/$1/$2/$3/ [QSA,L]

That'll at least get them to the day's archive.  Even better would be  
to redirect to a PHP script that'd either look in BlogWare's  
database, or consult a giant PHP array, and figure out EXACTLY what  
post is trying to be viewed, and redirect to that, but that's  
considerably more work than just pasting that one line into  
your .htaccess
--
Mark Jaquith
http://txfx.net/




More information about the wp-hackers mailing list