Copy this code after <head> tag:
<script type='text/javascript'>
if (document.location != '<data:blog.canonicalUrl/>'){
var dom = document.location.hostname;
var path = document.location.pathname;
var dot = dom.split(".");
var ex = dot[2];
var ex2 = dot[3];
if (ex != "com" || ex2 != null){
var name = dot[0] + ".blogspot.com/ncr";
window.location.replace("http://" + name + path);}}
</script>
沒有留言:
發佈留言