4) You also need to add a few redirect lines to your .htaccess files (if you know about htaccess mod_rewrite, just skip to 5).
I'm assuming you are already using rewrites to get pretty URLs ("/blog/2004/07/10" instead of index.php?day=etc").
If NOT, the following lines might not be there already and you need to insert them at the top of your htaccess file (if you do, they'll already be there):
RewriteEngine On
RewriteBase /blog/
Where "/blog/" is the path to your blog from the root of the site (for example, my blog's URL is "http://unknowngenius.com/blog" and therefore the path is "/blog/").
5) Then, somewhere under the "RewriteBase" line, insert
RewriteRule ^archives/cat_([^\.]*)\.[^\.]*$ index.php?mt_cat=$1 [QSA]
RewriteRule ^archives/([0-9]{4})[^\d]([0-9]{2})\.[^\.]*$ index.php?mt_year=$1&mt_month=$2 [QSA]
RewriteRule ^archives/([0-9]{2})[^\d]([0-9]{4})\.[^\.]*$ index.php?mt_year=$2&mt_month=$1 [QSA]
6) If you want ID redirection and your old `mt_entries` table is *still* in the DB (only need `mt_entries` though), you must also add:
RewriteRule ^archives/(.*)?([0-9]{3,6})\.[^\.]*$ index.php?mt_id=$2 [QSA]
7) The most IMPORTANT step, edit the following line with your own blog archive's URL:
*/
$archives_url = "http://unknowngenius.com/blog/archives/";
/*
8) Optional: You can format the redirect notice by adding your own ".blog_error" class to your CSS file or just copy-paste the following two classes:
.blog_error
{
text-align: center;
color:#FFF;
background-color:#F00;
font-weight:bold;
border: 1px solid #900;
font-size: 12px;
padding: 5px;
margin-bottom: 8px;
}
.blog_error A,.blog_error A:link
{
color:#DDD;
text-decoration:underline;
}
Notes:
1) the mod_rewrite rules assume that your archives somehow keep close to the usual MT archive naming conventions, e.g. "2004-07.html" for monthly or "cat_This_is_my_category" for category archives... if yours are different, you might need to edit the mod_rewrite rules above.
2) if you use ID redirection (for permanent link), your page URL must also be somewhat conventional: basically contain the numeric ID of the post at the end of the file name (e.g. "000123.html").
This entry's address has changed. Please update your bookmarks.
The new URL is: $new_url";
}
else
{
$mt_msg = "