Recently, I received an email from Google Web Master Tools that I'm my old site has receiving a lot of soft 404's lately, meaning a lot of people are accessing my posts using the old domain that were indexed by Google.
Hence, I got the idea of redirecting the users when they access the old domain to the corresponding blog post in the new domain.
Here's the very simple trick.
- Go to your Blogger dashboard
- Go to Template and click the Edit HTML button.
- In the template code displayed in the textarea, look for the <head> tag.
- Add this very simple JavaScript code inside the head tag.
<script type='text/javascript'> location.href = 'newdomain.blogspot.com'+window.location.pathname; </script>
And viola, it redirects now!
The graph has been flat straight since I made the changes.


No comments:
Post a Comment