寻找一种将博客文章重定向到外部URL的方法 [英] Looking for a way to redirect a blogger post to an external url

查看:122
本文介绍了寻找一种将博客文章重定向到外部URL的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可以帮助我解释我在该网站上关注的问题和答案的人.这是原始问题的链接:

I'm looking for someone to help me interpret a question and answer posted that I followed on this site. Here's a link to the original question:

如何我可以只将一个blogger.com页面重定向到外部URL吗?

我在理解答案的应用时遇到了麻烦.我可以进入帖子编辑器的html代码部分,但是我对此感到困惑.

I'm having trouble understanding the application of the answer. I can get into the html code section of the post editor, but I'm confused from here.

这里是我要插入Blogger的代码

Heres the code I'm trying to insert into Blogger

<script type="text/javascript">
window.location = "http://myblog.blogger.com/mypost";
</script>

我应该在哪里将外部站点重定向?这就是我在这段代码中需要修改的所有内容吗?

Where should I put my external site redirect? Is that all I have to modify in this code?

我正在尝试将博客文章标题链接到外部资源

I'm trying to have a blog post title link to an external source

我先感谢了, 迈克尔

推荐答案

步骤1 转到 Blogger 以编辑模式发布

第2步在帖子中添加Javascript重定向代码

Step 2 Add Javascript redirect code in post

<script>

window.location = "http://www.example.com/your-new-url-to-redirect-when-this-post-loads";

</script>

完整教程

Complete Tutorial

这篇关于寻找一种将博客文章重定向到外部URL的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆