Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 www.sub.domain.com 重定向到 sub.domain.com?
其他信息:
这在 .htaccess 文件中没有帮助吗?
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] </IfModule>
另外:https ://drupal.stackexchange.com/questions/50552/how-to-keep-domain-consistency-with-or-without-www/50553#50553