Change Blogger Specific Country Code Back To Commercial
Few Months Back Blogger Has Done Its Subdomains ie., www.yourblog.blogspot.com To Redirect to Its Specific Country Code ie., If You Developed Your Blog In UK Then It Will Redirect Your Sub-Domain To www.yourblog.blogspot.com.uk , If You Developed Your Blog In India Then It Will Redirect your Subdomain To www.yourblog.blogspot.in etc , this Process is Called 302 Redirect. Remove This Redirection & Keep Your Default Blogger Subdomain As Commercial ie., www.yourblog.blogspot.com Follow This Steps!
1.> Go To Blogger Dashboard-> Select Your Blog -> Go To Templates
2.> Click On Backup/Restore & Download Your Full Template .
3.> After This Click On Edit HTML , Then Locate <head> Press CTRL+F & Find Option Will Appear.
Type :-
<head>
4.> Then Insert This Javascript Code After <head> ->
<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>
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>
Then Save Template .
5.> This All You Have Done , is Restricted your Blogger Subdomian To Redirect
Change Blogger Specific Country Code Back To Commercial
Reviewed by Unknown
on
December 20, 2012
Rating:

No comments