我如何“镜像”/将各种特定域名指向给定的.com/suburl/
?
例子:
mydomain.fr > mymaindomain.com/france/
mydomain.se > mymaindomain.com/sweden/
我目前有以下 .conf 设置:
<VirtualHost *:80>
ServerName u13nuym
ServerAlias u13nuym.somedomain.DK www.mydomain.com mydomain.com www.mydomain.dk mydomain.dk
MaxClientsVHost 32
<Directory />
AAHatName u13nuym
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
我已负责将具有正确 A 记录的各种域名指向服务器。
答案1
尝试使用 .htacces
# This allows you to redirect your entire website to any other domain
Redirect 302 / http://mt-example.com/