我的主域为https://example.com. 我在cloudflare中添加了新的子域作为评论。实例com。在wordpress中,我使用重定向插件并更改urlhttps://example.com/some/path/some_post 到https://reviews.example.com/some/path/some_post. 和重定向工作,但这是重定向到示例。又是com。循环重定向正在发生。评论中的所有页面。实例com重定向到示例。com。为什么会这样?如何获得评论。实例com如果我在brouser地址行中使用它?我有一个WP装置。我不想为此页面(reviews.example.com)创建新的WP应用程序。我试着换一下。t访问/some/path/some\\u post,但它不工作:
RewriteCond %{REQUEST_URI} ^/some/path/some_post/ [NC]
RewriteRule ^(.*)$ https://example.com/test-name [R=301,L]
或RewriteCond %{REQUEST_URI} ^/some/path/some_post/ [NC]
RewriteRule ^(.*)$ https://reviews.example.com/some/path/some_post/ [R=301,L]