Cum fac redirect la un blog tumblr catre siteul meu

DaVinci

-
Registered
Full Member
Daca ai incercat sa faci redirect la un blog tumblr catre alt domeniu si nu ai reusit, uite aici metoda folosita de mine care functioneaza

Cod:
//in sectiunea <head>

<link rel="canonical" href="https://your-new-url.com/"/>
<meta name="description" content="this is a legacy blog page, and will redirect to the same post on my new blog">
<script type='text/javascript'>
   var new_slug = window.location.pathname;
   var new_root = "https://your-new-url.com";
   var new_url = new_root + new_slug;
</script>
Cod:
//in sectiunea <body>
<script type='text/javascript'>
    window.location = new_url;
</script>
 

masterofpuppets

Active Member
Registered
Full Member
Daca ai incercat sa faci redirect la un blog tumblr catre alt domeniu si nu ai reusit, uite aici metoda folosita de mine care functioneaza

Cod:
//in sectiunea <head>

<link rel="canonical" href="https://your-new-url.com/"/>
<meta name="description" content="this is a legacy blog page, and will redirect to the same post on my new blog">
<script type='text/javascript'>
   var new_slug = window.location.pathname;
   var new_root = "https://your-new-url.com";
   var new_url = new_root + new_slug;
</script>
Cod:
//in sectiunea <body>
<script type='text/javascript'>
    window.location = new_url;
</script>
E bine sa faci asta daca acel tumblr are ceva trafic, dar daca vrei sa scoti juice din el mai bine e sa ii arunci un link in descriere ;)
 

Reclama

Stiri Monezi Virtuale

Reducere pentru Vacanta

Loading...
Sus