使用Route53 DNSredirect域

我正在考虑将用户redirect到http://webmail.domain.com/3rdparty/roundcube而不是http://webmail.domain.com/

无论如何,我可以做到这一点,似乎只能编辑路线53上的“子域”,不知道是否有办法“ http://webmail.domain后面有”/ 3rdparty / roundcube“。 com “

还是有其他的select呢? 想到TinyURL:\

一种方法是使用Apache2虚拟主机的redirect规则

<VirtualHost *:80> ServerName webmail.domain.com Redirect 301 / http://webmail.domain.com/3rdparty/roundcube .... </VirtualHost> 

如果你使用的是Apache,你可以通过.htaccess来完成。 这不是DNS的工作。

 RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [NC] RewriteRule ^$ /3rdparty/roundcube [R=301,L]