将传入的搜索请求重定向到其他域(也使用 bolt.cm)


Redirect incoming search request to other domain (also with bolt.cm)

我有两个网站在 Bolt.cm

上运行

一个旧网站被称为blog.domain.nl,另一个只是domain.nl

现在我在domain.nl上发表了一些类似的帖子(请注意,这是一个不同的 bolt.cm 安装)

我想将blog.domain.nl上的直接点击重定向到domain.nl我想取消发布blog.domain.nl上的帖子

如何为此设置适当的直接?

因此,如果谷歌有一个搜索索引blog.domain.nl/a/blog.我想将其重定向到domain.nl/a/blog

Bolt 有一个重定向扩展,可以在这里找到:http://extensions.bolt.cm/view/d325689f-ace6-4700-bffd-1197d9c0cec8

您需要的配置部分如下所述:https://github.com/foundrycode/boltredirector#using-wildcards

如果您的需求与您给出的示例一样简单,那么这将是不必要的,您只需使用mod_rewrite重定向(假设您使用的是 Apache),这看起来像这样......

RewriteRule ^blog/$ http://domain.nl/$1 [L,NC,R=301]