grippo - 6:23 pm on Jun 18, 2012 (gmt 0)
@thudufushi this is an idea. I made it myself, I think this minimize 301 redirect effects on 404 responses at the end of the redirect chain. You can host both domains, old domain, and new domain in the same webserver. Make one of them the main domain, say new domain, the other is a serveralias. You can do that configuring the same virtual server in httpd.conf,
This way all requests will go to the same virtual. Then in each page, insert
<link rel="canonical" href="http://new.com/path" />
"path" should be path of each page. This way 404/410 will be handled immediatly and real 301 will be handled by rel canonical. Just an idea but I think it is woking.