在Drupal多站点上使用RewriteCond限制redirect
我正在研究一个Drupal多站点,因此,我的redirect被添加到相同的htaccess。 问题是我的RewriteCond工作不正常。 我的example1.com RewriteRule也在example2.com上工作,我不想要。 这些redirect是特定于站点的。 任何人都可以看到我做错了什么? # START redirects of example1.com RewriteCond %{HTTP_HOST} ^stage\.example1\.com [NC,OR] RewriteCond %{HTTP_HOST} ^example1\.com [NC] RewriteRule ^products/new-equipment/marine-engines$ /products/new/marine [R=301,L] # END redirects of example1.com # START redirects of example2.com RewriteCond %{HTTP_HOST} ^stage\.example2\.com [NC,OR] RewriteCond %{HTTP_HOST} ^example2\.com [NC] RewriteRule ^products/new/machines/405/(.*) /products/new [R=301,L] # END redirects of example2.com