Simple Redirect From Blogger to Wordpress
I’ve been looking for a simple way to redirect my Blogger posts to my self-hosted WordPress site, but none of the plugins or code worked. After 3 days of futzing I came up with the following solution. Place this code after your <Blogger> tag and switch the appropriate identification.
|
<b:widget id=’Redirector’ locked=’true’ title=’Blog Posts’ type=’Blog’> var url= ‘<$BlogItemPermalinkUrl$>’;; if (myNewurl == testurl) |
Notes:
- This assumes you are moving from myblog.blogspot.com to www.myblog.com
- You must have structured your wordpress permalinks to match your blogger permalinks for this to work, which is easy enough to do in your wordpress dashboard.
- The testurl variable will vary for you. The problem comes about because on your homepage the $BlogItemPermalinkUrl$ pulls the top post from the page rather than thinking you want the main page. Therefore, determine what the new version of that url will be and put it in here for your homepage to correctly route.


Recent Comments