Skip to content

Instantly share code, notes, and snippets.

ahmed-sheta

Block or report user

Report or block ahmed-sheta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ahmed-sheta
ahmed-sheta / Blogger Local Domains Redirect.js
Created Jul 17, 2018
Redirect Google Blogger Local Domains to World Wide .com Domain
View Blogger Local Domains Redirect.js
<!-- This code will redirect any Blogger local domain such as .blogspot.com.eg to the world wide domain .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(&quot;.&quot;));if (ctld != &quot;.com&quot;) {var ncr = &quot;http://&quot; + blog.substr(0, blog.indexOf(&quot;.&quot;));ncr += &quot;.blogspot.com/ncr&quot; + slug;window.location.replace(ncr);}</script>
<!-- End of the code www.ahmedsheta.com -->
You can’t perform that action at this time.