Template


Merry New Year

Hope all my readers have a Happy and Prosperous New Year. 

I promise to post more in the new year and have some plans for the Financial Blog including:

  • Revamp the theme, it really does suck and is quite cluttered, but not sure which way I want to go with it right now. 
  • Do some more investigations of blogging and SEO ideas to see if I can cross the threshold and start making some good money blogging. 
  • Actually make some money on something other than Adsense!

Happy New Year!


Moving from Blogspot to Hosted WordPress?

Simply use a 301 redirect with some devilishly ingenious code from TechCounter:

301 Permanent Redirect from Blogger Beta to WordPress

Most Bloggers start out with free blog hosting with the most popular of the free services being Google’s blogger where you get a yoursite.blogspot.com address. Now you want to move from Blogger to your own domain. One of the best publishing software is provided by WordPress and the best part is it is free. Importing to WordPress from Blogger used to be a breeze using WordPress’s import posts feature. However when Google moved from Blogger to the new Blogger or Blogger Beta, it became impossible to use WordPress’s import utility.

However, you can now do so with the steps outlined here about Importing Blogger Beta Posts to WordPress

Many users were able to implement this method successfully. Now, we move to the next step. Lets deal with some questions I had so far …

1. What happens to my old blogger blog? Should I just delete it after importing to WordPress?

2. I heard Google penalizes duplicate content. I now have my posts at both my old blogger blog and my new WordPress blog hosted on my domain. What should I do?

3. You mentioned using the 301 permanent redirect from blogger to WordPress. Can i do it?

Okay … lets deal with these questions first.

1. No, you should not delete your Blogger blog. I am sure you worked hard at it. You might have many subscribers to that blog. The search engines have content indexed to that blog. What happens if you delete your blogger blog is simple … you end up LOSING ALL YOUR TRAFFIC, all your loyal subscribers and visitors simply because they don’t know your new address.

2. Yes, Google penalizes duplicate content. How do you deal with this.. well read on

3. When people move from their old website to a new one they use a 301 permanent redirect method without being penalized by the search engines. However, you cannot do this straight up with Blogger because you do not have access to your .htaccess file. So its not a simple plug and play unfortunately because of this.

How to redirect your old Blogger posts to your New WordPress blog posts using a permanent redirect

I wanted to thank Owen Barder for his excellent code to redirect your individual posts from blogger to WordPress. Also, thanks to Tom Sherman. I will try to stick to what these two guys have to tell.

Using the method outlined here, you will be able to

1. Redirect your visitors from your old Blogger blog to your WordPress Blog on your domain

2. Redirect your old posts to new posts on your WordPress blog instead of redirecting them just to your home page of your WordPress blog

3. Do all this in such a way that Google does not penalize you. You also get to transfer your Google Page Rank too. How about that ….. !

Step # 1: Import from Blogger Beta to your WordPress domain

I am assuming that you backed up your blog and Imported to your WordPress domain from the new Blogger or Blogger Beta. If you didn’t do, check out my article on Import from Blogger Beta to WordPress

Step # 2: Modify your Blogger Template to include redirects

Log into your Blogger account. Go to Template and then Edit HTML. Paste the code shown below where you replace http://www.yoursite.com with the root URL of your WordPress Blog

a. Add the code below after <Blogger> in your template

<MainOrArchivePage>
<script language=”javascript”><!–
var blog_root=http://www.yoursite.com/;
document.location.href=blog_root;
//–></script>
</MainOrArchivePage>

<ItemPage>
<script language=”javascript”><!–
var process_page=”http://www.yoursite.com/bloggerposts.php”;
var newpage=process_page;
var oldlink=”<$BlogItemPermalinkUrl$>”;

newpage+=”?p=”+oldlink;
newpage=newpage.toLowerCase();
document.location.href=newpage;
//–></script>
</ItemPage>

b. Add the line shown here somewhere in between the <head> ..</head> tags of your blog

url=http://www.yoursite.com/” />

Notice the space between /” and the />

somewhere in between the <head></head> tags like this:

<head>
url=http://www.yoursite.com”>
</head>

Step # 3: Prepare your WordPress blog for Redirects

a. Open Notepad. Copy and paste the code given below. Save it as bloggerposts.php or anything else you want and put it in the root location of your WordPress blog. By root, I mean not in any wp-admin or any other folder, but in the root and the link should be something like http://www.yoursite.com/bloggerposts.php

php

require($_SERVER[’DOCUMENT_ROOT’].’/blog/wp-blog-header.php’);
$search_link = $_GET[’p’];
$vars = explode(’/’, $search_link);
$num = count($vars) – 1;
$filename = $vars[$num];
$slug = str_replace(”.html”, “”, $filename);

$SQL = “SELECT posts.* FROM $wpdb->posts AS posts WHERE posts.post_name = ‘$slug’ LIMIT 1″;
$posts = $wpdb->get_results(”$SQL”);

if ($posts) {
foreach ($posts as $post) {
$found_link = get_permalink($post->ID);
}
}
else
{
$found_link = “http://www.yoursite.com/”;
}

?>

<html>
<head>
<title>Redirecting…</title>
<script language=”javascript”><!–
document.location.href=”php echo ($found_link); ?>”;
//–></script>

php echo ($found_link); ?>”>

</head>
<body>
<h1>Redirecting…</h1>
<p>You can also proceed immediately to <a href=”<?php echo ($found_link); ?>”><?php echo ($found_link); ?></a>.</p>
<p>The main blog URL is <a href=”http://www.yoursite.com/” mce_href=”http://www.yoursite.com/”>www.yoursite.com</a>.</p>
</body>
</html>

All you need to do in the above code is wherever you see http://www.yoursite.com , change it to the root location of your WordPress blog. What this code is doing is taking the URL from Step # 2 and redirect the user to the corresponding entry in your WordPress blog. In case it does not find the corresponding entry, it redirects to the homepage of your blog.

Related Blogs


New Site

This was back when I moved from Blogspot to a WordPress self admin site. Another change has happened here, with the site moving to HTTPS, we shall see if this changes things a bit more.

Yes, the site has actually moved off Blogspot, over to my real hosting site Dreamhost.

As can be seen, a very different and cleaner look to things, hopefully with more postings, but at least a nicer look to it.

The Theme I started with (and testing out) was UBD Money Maker by Unique Blog Designs (and it is a free theme from them, they usually charge for their themes) on top of WordPress (of course). It comes with their advertising rotator code built into it (that thing on the upper right).  So far I am enjoying using the Theme and am already tweaking it here and there (not the Adsense addition in the right side bar, which is not part of the standard set up).

I have turned on the robots on this site, and registered it with Google’s web master tools, and have turned off the robots on my old site, using the Meta Tag Robots Fix in the last article, not that it matters that much, as I don’t have that much from this site that is actually looked at just yet.

I will be using this site as an experimental site for some ideas that I have, and also to try things out before I try them on Canadian Financial and Consumer Opinions as well. The first is trying this theme out and seeing what I can change and whether this is suited to my other site. I will also be trying out some other plug ins and such, and will be reviewing things (like this theme) in more detail as well.

I will leave the old site up for now, but may rip all the content out and leave it as a skeleton pointer back to this site.
Technorati Profile


Me Thinks My Template is Garbage

Well after running SOFTPlus GsiteCrawler on all of my sites (including this one), I have found that my only site with problems now is Canadian Financial Opinions, which continues to come up with a bunch of problems like this one:

Which is quite interesting. Now I had a similar kind of problem on my family web site and it ended up that one of the HTTP elements I had added was screwing up. I found that out by looking at the web site with the problem and then doing a “View Source” on the IE menu to find the problem entry, however, I cannot seem to find this entry on Canadian Financial Rants anywhere. I will continue to try to sleuth this one out, but it’s almost like debugging code again, it’s kind of fun!


More Posts Is Important Too

Yup, I kind of fell asleep at the stick, so I will try to put some more posts up here.

I have been trying out WordPress just to see if I can create a nice format for my financial web sites, but now I have tripped across this free template for Blogspot, I think I like it. It’s a little grey, but I think I can tone it down over time a little.