Navigation

How to Redirect Blog Urls

How to Redirect Blog URLs, How to Redirect Blog URLs to Several Other Sites, redirect blog urls, redirect blog,

How to Redirect Your Blog URLs to Several Other Sites


For friends who want to create a new site but do not want to lose visitors from the old site, you can add How to Redirect Blog URLs to Some Other Sites on your old site.


The working method of Redirecting Blog URLs to Several Other Sites is almost the same as How to Redirect Page Not Found to Other Pages. But the difference is, here you can add several site links and will automatically switch to sites that have been randomly assigned. How to? The method is quite easy, let's follow the tips below.

How to Redirect Blog URLs to Several Other Blog Sites

Open the Blogger page and Login > Click Themes menu & click the Edit HTML button> Add the following code before 
</ body>



<script type='text/javascript'>
//<![CDATA[
(function(){
setInterval(function(){
var redSites = [
  "https://newsite1.blogspot.com",
  "https://newsite2.blogspot.com",
  "https://newsite3.blogspot.com",
  "https://newsite4.blogspot.com",
  "https://newsite5.blogspot.com"];
var randomLinks = redSites[Math.floor(Math.random()*redSites.length)];
window.location = randomLinks
},9000)
}())
//]]>
</script>
Pay attention to the marked code, change the URL of the site with your blog site. You can also reduce or add the site URL in the code as needed and for the number 9000 (9 seconds) shows the time taken when switching to another site.
After editing, click the Save theme button and finish.
Share

TECHNONEWS

Post A Comment:

2 comments: