最近需要在apache下配置301域名。永久重定向应该考虑使用apache的重写或重定向实现。我使用重写来实现1,通过创建一个新的。htaccess文件并写入其中。
The main configuration file of street hooligans must start the rewrite engine to ensure that the modification _ rewrite module directory /var/www/html/xxx.cn option is loaded. The following symbolic link AllowOverride All ensures that it is not a non-director who started testing for a long time.