本文介绍了重定向w.,ww.,wwww到->万维网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将site.com w.site.com ww.site.com和wwww.site.com重定向到www.site.com.

I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com.

我的老板想确保错别字也能进入网站.

My boss wants to ensure typos make it to the site as well.

他们重定向好了.我正在使用ASP.Net并使用正则表达式抛出301重定向,但是,诸如 http://www.seoconsultants.com/tools/headers.asp 似乎没有显示正确的重定向.等

They redirect fine. I'm using ASP.Net and throw a 301 redirect back using a regular expression, however, tools such as http://www.seoconsultants.com/tools/headers.asp don't seem to show a correct redirect when I try to use w.site.com ww. etc.

我正在尝试弄清楚google会看到什么,但是我不确定该在哪里检查.

I'm trying to figure out what google sees, but I'm not sure where to check.

firebug会显示"为301,但我不知道为什么这些工具会报告错误的信息.我的老板正在使用网络工具来查看这些工具是否起作用,所以没有人知道一种方法来证明301已正确发送回.还是有人可以推荐我可以自行检查是否返回了正确的301的方法?

It would "appear" that firebug reports it as a 301, but I can't figure out why these tools are reporting back the wrong information. My boss is using web tools to see if these work, so does anyone know a way to prove that a 301 is being sent back correctly. Or can anyone recommend a way I can check for myself if a proper 301 is being returned?

推荐答案

向您的dns条目添加 *记录.是的,这是一个星号.这将导致所有未明确定义的内容都转到该IP.

Add a * A record to your dns entry. Yes that is an asterisk. This will cause anything that is not explicitly defined to go to that IP.

例如:* .site.com

For example: *.site.com

这篇关于重定向w.,ww.,wwww到->万维网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 13:33