重定向非www.前往www.地址 [英] Redirecting non-www. to www. address

查看:85
本文介绍了重定向非www.前往www.地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我输入例如yahoo.com的地址时,它会自动转到www.yahoo.com.

对于我们的社区网站,如果我输入keralausa.com,则不会访问www.kerelausa.com.除非是www.keralausa.com,否则使用Microsoft EOT/WEFT创建的其他语言字体将无法正确显示该字体.如何不依赖托管公司而直接访问www.keralausa.com?

我们使用ASP.net和C#并托管在Microsoft serevr

When I type in the address for example yahoo.com it automatically go to www.yahoo.com.

For our commmunity website if I type in keralausa.com it doesn''t go to www.kerelausa.com . Other language fonts created using microsoft EOT/WEFT won''t display the font properly unless it is www.keralausa.com. How do I direct to www.keralausa.com without relying on hosting company?

We are using ASP.net and C# and hosted on Microsoft serevr

推荐答案

上写道:

如何在不依赖托管公司的情况下直接访问www.keralausa.com?

How do I direct to www.keralausa.com without relying on hosting company?



你什么意思?您是否在应用程序中创建指向该站点的超链接?还是您是说其他人创建了指向您网站的链接?

如果您使用的是IIS 7,则此 http://www.iis.net/expand/URLRewrite [ ^ ]



What do you mean? Are you creating a hyperlink to this site within your application? Or do you mean when someon else creates a link to your site?

If you are using IIS 7 there is this http://www.iis.net/expand/URLRewrite[^]


我的意思是是有人提到我必须联系托管公司以重定向到www.我可以通过我的代码重定向它吗?


该站点是在2005 Visual Studio.net ASP.Net/C#/AJAX中设计的,并托管在Windows 2003服务器上.

当我致电www.keralausa.com时,它可以正常工作(www.keralausa.com/default.aspx),但是当我致电keralausa.com时,它可以正常工作,期望某些语言的字体显示.
所以基本上我想重定向任何非www.前往www.

========================

通过其他人获得了此信息...
B)在Microsoft IIS服务器上安装非WWW 301重定向
Microsoft服务器没有要更改的.htaccess文件,因此我们建议您与托管服务提供商联系,并请求它们为您进行更改
What I meant by that is someone mentioned that I have to contact the hosting companty to redirect to www. Can I redirect it through my code?


The site is designed in 2005 Visual Studio.net ASP.Net/C#/AJAX and hosted on a Windows 2003 server.

When I call www.keralausa.com it works fine (www.keralausa.com/default.aspx) , but when I call keralausa.com it works fine expect for the font display for certain language.
So basically I want to redirect any non www. to www.

==========================

Got this info through someone else...
B) Installing the Non-WWW 301 Redirect on a Microsoft IIS Server
Microsoft servers do not have a .htaccess file to alter so we suggest that you contact your hosting provider and request they make this change for you


这篇关于重定向非www.前往www.地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆