答案 0 :(得分:1)
答案 1 :(得分:0)
RedirectPermanent /ru http://www.site.com/ru
可能是重写规则的更好选择。
答案 2 :(得分:0)
如果你检查.htaccess文件,你可能会看到85-90行(Drupal 7.x):
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# uncomment the following:
# RewriteCond %{HTTP_HOST} .
# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
如果您取消注释这一行,您可以获得解决问题的方法。