How can I implement 301 redirect for specific posts of blogger (Not all)?
|
|
One new option has just opened up at "Settings › Search preferences" in the blogger interface: Detailed here, it looks like:
Caveats
Update: It seems you may now be able to specify a "permanent" redirect and i have updated the image to show this... |
|||||
|
|
I'm pretty sure this can't be done. Your only opition would be a JavaScript redirect which could have text such as:
I have even seen companies like Microsoft utilize these kind of pages. Update: I just ran into an example of Apple using a page like this. |
||||
|
|
Complete answer(From a post by Khusnul Khotimah, to which I've added my own observations) Suppose you have a blog with three posts at addresses
The new URLs may be inside or outside your blog. N.B: This works if the blog from which you are redirecting uses "layouts", but not if it uses the older "classic" templates. It seems that "classic" Blogger doesn't understand the "b:if" tag and therefore ignores it, with the result that the "cond" is always treated as true. Hence, if you try to use a series of conditional redirects in a "classic" template, the URL given in the last redirect will apply, and all pages on your blog will redirect to that URL (oops!). You can modify this behavior by exploiting the fact that "classic" Blogger respects the Yes, the redirection code really must be inserted immediately after the I've used this trick (with a 1-second delay) for redirected posts at this old blog (if a post has been moved, clicking on its title starts the automatic redirection). |
|||
|
|
|
Rumor has it that some search engines, including Google, will treat a "meta refresh" the same as 301 redirect, if the specified refresh delay is short. A meta refresh could be implement as the last resort when no other redirection option is available. A meta refresh looks like this:
In order for search engines to consider this meta tag into account:
In blogger you can edit the head section of your blog via "Templates > Edit HTML". Blogger also provides the possibility of little bit of server-side scripting. So you can inject the meta refresh in the head section of your blog CONDITIONALLY, e.g. only when the page URL is This post shows you how you can inject a custom title tag by checking the value of a blogger variable called
Complete reference of blogger template variables is available here. Edit: I applied this on my blog and it kind of worked actually. Google webmaster tools reports links to my old blog in my new blog's "Links to Your Site" section. |
||||
|
|
|
I don't think there's a straightforward feature provided by Blogger to do this. However, if your Blogger-powered blog is on a custom domain (NOT something.blogspot.com) then there is an indirect way to do this (caveat: Highly experimental. May be correct in theory, but hasn't been tried in practice)
|
|||
|
|
