Redirect Google Blogger Country Code Domains ccTLDs to No Country Code Top Level Domain TLD blogspot.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Update: You will no longer need this code, as Blogger do it now by default --> | |
<!-- This code will redirect any Blogger country code domain (ccTLDs) such as .blogspot.com.eg to the Blogger No Country Code Top Level Domaian TLD .blogspot.com --> | |
<!-- Just paste this code before <head> tag --> | |
<!-- Start of the code www.ahmedsheta.com --> | |
<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> | |
<!-- End of the code www.ahmedsheta.com --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment