Advertisement
retnet

blogspot no redirection

Feb 10th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var blog = document.location.hostname;
  3. var slug = document.location.pathname;
  4. var ctld = blog.substr(blog.lastIndexOf("."));
  5. if (ctld != ".com") {
  6. var ncr = "http://" + blog.substr(0, blog.indexOf("."));
  7. ncr += ".blogspot.com/ncr" + slug;
  8. window.location.replace(ncr);
  9. }
  10. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement