- Post the new article and create a link in the old article directing to the new article.
- Delete the old article and post the new article.
Update: Google® has now added an option to add redirects directly from blogger settings. The below method can be used, but is not longer needed. New option is added under
- Settings > Search Preferences > Errors and redirections > Custom Redirects!
You can still use the below method if you want to customize something which is based on a single post, like a script to change color or something else which is executed only for that page.
Infinite possibilities!
Suppose we have the first post named "old post" and the new post was made with name "new post". Now we want the visitors to the old post redirected to the new post automatically. We can add the following code in the header of the blog, before the </head> tag.
<b:if cond='data:blog.url == "http://YOURBLOG.BLOGSPOT.COM/old-post.html"'> <meta HTTP-EQUIV="Refresh" CONTENT="3;URL=http://YOURBLOG.BLOGSPOT.COM/new-post.html"> </b:if>
In the above code we have used the if condition. It states that if the url of the page loaded into the browser (data:blog.url) is exactly equal to the url of the old post (ie.http://YOURBLOG.BLOGSPOT.COM/old-post.html) then the meta refresh tag will refresh the page and load the new post stated in the url tag (ie. http://YOURBLOG.BLOGSPOT.COM/new-post.html) in the given time (ie. 3 seconds in this example).
Now all that is left is that we have to edit the old post and add a line before the content that the page will be redirected to the new article in 3 seconds.
No comments:
Post a Comment
Comment anything you want. Just be polite and give respect to others!
I am simply going to remove the comments which are offensive or are off topic.
And please don't spam your website links in comments. I don't, neither should you.