用www域名重定向到www [英] redirect to www with www domain name

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

问题描述

我已经为facebook应用程序创建了asp.net应用程序。

如果域名没有'www'那么fconnect登录或注销不起作用所以我想重定向'www'域名。

如果有任何用户输入'mydomain.com',那么它应该重定向到'www.mydomain.com'



是否有任何设置web.config文件执行此操作?



有谁知道怎么做?



谢谢

Imrankhan

I have created asp.net application for facebook application.
If domain name is without 'www' then fconnect to login or logout is not working so I want to redirect with 'www' domain name.
If any user type 'mydomain.com' then it should redirect to 'www.mydomain.com'

Is that any setting in web.config file to perform this action?

can anyone know how to do this?

Thanks
Imrankhan

推荐答案

这是你的应用程序,检查URL并在必要时添加www或使用 URLRewrite [ ^ ]
It's your app, check the URL and add www if necessary or use URLRewrite[^]


查看下面的artilce

使用ASP.NET重写URL







如果发现有用,请接受答案:)
Check out below artilce
URL Rewriting with ASP.NET



Accept the answer if found useful :)


我使用mojoportal框架,所以我不使用URL重写功能作为mojoportal使用他们的URL重写概念。



IIS或web.config文件中是否有任何设置来执行此任务?



谢谢

Imrnakhan
I am using mojoportal framework so I do not use URL rewrite feature as mojoportal use their URL rewrite concept.

Is there any setting in IIS or web.config file to perform this task?

Thanks
Imrnakhan


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

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