How to ReDirect your Blogspot Blog to .com Domain
6 Simple Steps to redirect your blogspot to .com domain always.
IF you have a blog
in the blogspot domain, it will be country related domain.
if you have a blog
like name.blogpspot.com, it will redirected to name.blogspot.com.sa when you
open from Saudi Arabia, or as name.blogpost.com.au if you open from Australia.
To avoid this, and to make all the audience view as the same blogspot.com domain, foolow these steps.
Step: 1 Go to
blogger.com/home
Step: 2: take layout
Step: 3: click "Edit
html"
Step: 4: Press Ctrl+F to find
the <head> text.
Step: 5: Place the following
code after it.
<script
type="text/javascript">
var blog =
document.location.hostname;
var slug =
document.location.pathname;
var ctld =
blog.substr(blog.lastIndexOf("."));
if (ctld !=
".com") {
var ncr = "http://" + blog.substr(0, blog.indexOf("."));
ncr +=
".blogspot.com/ncr" + slug;
window.location.replace(ncr);
}
</script>
Step: 6: Save template.
Now all audience will get the same domain of blogspot.com
0 comments:
Post a Comment