" (without the quotes), it's pretty close to the top * put this right BELOW * * * YOU MUST CHANGE 'hansanderson.com' to your blog address in both places or else I'll get all your hits! * * * Click "save template" then try to view your blog. You should go to your new front page. * * * TEST IT! * * Go to Posting, Edit Posts, click "View" on any one of the blogs posts in the list; * you should go directly to that post on your new server (after a couple of redirects) * * * * Keep in mind that some posts may not work; it seems if you choose a title, then change it, blogger * uses the old title as the "slug" -- the last part of the URL that says something like the-day-I-ate-ice-cream * (as in, /2008/05/the-day-I-ate-ice-cream). If you changed the title, that slug stays the same (this is * probably smart... not really a flaw for blogger, just for us who are trying to convert). Wordpress creates * the slug anew when you import. If you like to change your titles a lot, you will have a lot of redirects to your blog front page. * */ $site = "http://hansanderson.com"; require('./wp-blog-header.php'); $blogger_url = ereg_replace ( '^p=', '', urldecode ( $_SERVER['QUERY_STRING'] )); // some installs might not have _GET or _REQUEST anymore... $parsed_url = parse_url ( $blogger_url ); $filename = basename ( $parsed_url['path'] ); $filename = strip_tags ( $filename ); // a little XSS protection $slug = str_replace(".html", "", $filename); $found_link = $site; if ( !empty ( $slug ) ) { $SQL = "SELECT posts.* FROM {$wpdb->posts} AS posts WHERE posts.post_name = '" . mysql_escape_string ( $slug ) . "' LIMIT 1"; $posts = $wpdb->get_results( $SQL ); if ($posts) { foreach ($posts as $post) { $found_link = get_permalink($post->ID); } } } ?> Redirecting...

Redirecting...

You can also proceed immediately to .

The main blog URL is .