打开drupal的.htaccess文件找到If your site can be accessed both with and without the 'www.' prefix将下面对应的三行代码去掉注释,即去掉每行开头的#”结果: