ricemorning: some tricks while creating ricemorning blogs

some tricks while creating ricemorning blogs


DAY1 on ricemorning, date:2017-08-06 
I don't know what's going with my Google account, it's aways redirect all pages to Romanian edition. Every page I open, every search I do, and now, this one blog I create, are redirect to the ro domain.
I am so uncomfortable and I delated my blog last time(although only one post ). I find the way, which can helps you : stop the redirect URLs by google .
Here is the code you put in after <head> in templates HTML,the solution is from here:

<script type="text/javascript">

  // Written by Amit Agarwal
  
  /* Get the full URL of the current blogger page */
  var blog = document.location.href.toLowerCase();

  /* Do not redirect if the domain is .com already */
  if (!blog.match(/\.blogspot\.com/)) {

    /* Replace the country TLD with .com and ncr switch */
    blog = blog.replace(/\.blogspot\..*?\//, ".blogspot.com/ncr/");

    /* Redirect to the new .com URL in the current tab */
    window.location.replace(blog);
  }

  // Source: http://labnol.org/?p=21031
  
</script>

No comments:

Post a Comment

Chinese typography solution for bussiness

Huge gap between Chinese and English typotraphy Three years ago, I had an interest on Graphic Design and decided give me a chance to learn...