【发布时间】:2016-05-06 11:25:44
【问题描述】:
如何将我 blogspot 上的所有 url 转发到我自己域的对应 url?
示例:
转发所有这些:
http://example.blogspot.com/url-1.html
http://example.blogspot.com/url-2.html
http://example.blogspot.com/url-3.html
甚至不存在的网址
http://example.blogspot.com/non-existing-url-4.html
给这些对应自己的域:
http://owndomain.com/url-1.html
http://owndomain.com/url-2.html
http://owndomain.com/url-3.html
http://owndomain.com/non-existing-url-4.html
基本上,如何保留url地址并将其映射到自己的域?
我已经有了,但这只是将 blogspot 的主页重定向到我自己域的主页:
<script type='text/javascript'>
var d='<data:blog.url/>';
d=d.replace(/.*\/\/[^\/]*/, '');
location.href = 'http://owndomain.com';
</script>
【问题讨论】:
标签: regex redirect blogger url-redirection blogspot