CNAME:cname是否会更改浏览器显示的URL?


16

我有一个网站www.somewhere.com,我想要别名fr.somewhere.com

我为www.somewhere.com别名设置了CNAME记录fr.somewhere.com。用户http://fr.somewhere.com输入浏览器时,浏览器中的URL是否保留fr.somewhere.com或更改为www.somewhere.com

Answers:


15

fr.somewhere.com除非您正确配置了重写条件,否则它将保持不变:

RewriteCond %{HTTP_HOST} =fr.somewhere.com
RewriteRule ^(.*)$ http://www.somewhere.com/$1 [R=permanent,L]

我创建了一个cname记录,blog.legoservices.com该记录仅指向tumblr,但您看到的是blog.legoservices.com

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.