is there a way you can make a code to redirect a blog's archive html?
Unfortunately no; the page for your archive (e.g. yourtumblr.tumblr.com/archive) is a special tumblr page that does not use your theme code and cannot be overridden.
seen from Yemen
seen from Yemen
seen from China
seen from Canada
seen from China

seen from United States
seen from United States
seen from Canada

seen from United States
seen from Malaysia
seen from United States
seen from Latvia

seen from United States
seen from United States

seen from United Kingdom
seen from China
seen from United States
seen from Hong Kong SAR China
seen from United States

seen from Malaysia
is there a way you can make a code to redirect a blog's archive html?
Unfortunately no; the page for your archive (e.g. yourtumblr.tumblr.com/archive) is a special tumblr page that does not use your theme code and cannot be overridden.
I know you have a post about redirecting old url links to a new url. How about this: I've been fiddling with shifting a personal sideblog to a new URL, but I don't want to lose all of my old content. Suggestions->maybe a url redirect to the new one along with redirect tags? I'm just not wrapping my brain around it.
If you just want to change the url of your blog and not switch actual blogs (i.e. you want to keep all your content and followers), you can go to your blog settings and switch your url name there. The only thing that changes is your url name. All of the links that tumblr automatically generates will also switch to your new url (e.g. sources, reblogged froms).
The script is useful for where your blog is directly linked somewhere, like in a text post or somewhere external to tumblr. Those links will not automatically change to your new url. But if you make a new blog using your old url, you can still control what happens to people going to your old url because you control that old url. This new-blog-using-your-old-url is not your real blog; this blog’s entire purpose is to redirect people to your real-blog-no-longer-using-old-url.
Most likely, you’d want people accessing your old url to be redirected to your new url, and you can do that by putting the redirect script on that blog.
Hope that made sense!
hey! i was wondering if u could link me to a code for the old url while its being redirected to my new url? idk if that makes sense but basically do u have a theme that just says "___ has moved to ___" and looks nice if that makes sense
The one that I use in my example is here at pastebin :) The redirect code is already in there, you just have to go into the code to change the username.
Hi! Your redirect code works well but it doesn't work on mobile. Do you know how to make it work?
The redirect code will only work in places that use your custom theme (you’re putting that code in your theme, after all). You may be using the default mobile theme instead of your custom theme on the mobile website, which you can change in the advanced settings of the Edit Theme page (it’s the very last option of that sidebar menu, below your pages).
The redirect code can never work on the tumblr mobile app, as the app doesn’t use your theme at all! Because of that, you should still add a link to your old blog’s description or have a post directing users to your new blog for users who use the mobile app.
hi, idk if this was ask before(sorry if it was but i panicked) i used your method for redirect my old url to the new one and it's great but now i want to changed to the old one, i have delete the blog that cotains my old url?
To change to any url, the url needs to be available to use. If you’re already using it – on a sideblog, for example, where you’ve saved it – you’ll need to change that sideblog’s url to something else (anything else available! like oldblog1234) before you can use the url on a different blog. You don’t have to delete any blogs. I hope that makes sense!
hey Gina!! I'm sorry if you've been asked this before, but I want to change my current username to one that I already have saved - do you have any tips on the best way to do this? I've been wanting to do it for a while but for some reason it just makes me nervous that I'm going to lose either username or blog data or something/anything. Thanks so much in advance!! :)
As long as you don’t press the “delete blog” button or enter your password in anywhere, I think you’ll be fine :D
Ok, let’s assume you’ve got two blogs: oldusername and newusername. Your main blog on oldusername. You want to change to the url of your other blog, newusername, which is doing nothing but sitting on that particular url.
1. Go into your settings for newusername and change the username to something else entirely like newusername222, so that you can actually change your current blog to newusername. Otherwise, you’ll get a conflict saying the username is already in use when you try to change oldusername.
2. Now do that - go into the settings for oldusername and change oldusername to newusername.
3. Go back to your settings for newusername222 and change that to oldusername so you “save” your previous username.
4. On the theme of what is now oldusername, add my redirect script if you want to redirect all the links that are still floating around as oldusername.tumblr.com/post/blah to newusername.tumblr.com/post/blah.
Hope that isn’t confusing!! Ask again if it is :’D
im the anon with the white screen tagged/ problem, also witch every code i use its the same thing, i really dont know whats the problem...
okay so this is the code i use so it works 100%
paste it under
and retype the quotation marks and apostrophes
<br>if(location.href == ‘http://YOUR URL.tumblr.com/’) location.replace('http://YOURURL.tumblr.com/tagged/TAGNAME’);;<br>
/Claudia
ok here’s the redirect code. obviously change the url and tag to yours. it goes after the <body> tag. it should work with most themes
<script type="text/javascript"> var url = location.href; if (url == "http://l-u-x-e-t-t-e.tumblr.com/") { window.location = "http://l-u-x-e-t-t-e.tumblr.com/tagged/lux"; } </script>