我如何重定向到www [英] How do I rediirect to www

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

问题描述

我想将XXXXXXX.com重定向到www.XXXXXXX.com我已经在html和php上完成了这个但是这个是在dotnet上...而且我无法理解

也如何将名为/Default.aspx的帖子链接重定向到网站网址



我尝试过:



我尝试了很多东西,但他们没有工作,因为我第一次在Dot Net上请帮帮我outz

解决方案

这是一个例子将XXXXXXX.com重定向到www.XXXXXXX.com

Scott Forsyth的博客 - IIS URL重写 - 将非www重写为www [ ^ ]



这是一个关于如何重定向的示例

如何:将用户重定向到另一页 [ ^ ]


使用Response.redirect()方法从一个页面重定向到另一个页面或可以重定向到外部URL。



Ex:Response.Redirect(one.aspx);



外部网站:



Response.Redirect(www.codeproject.com);

i want to redirect XXXXXXX.com to www.XXXXXXX.com i have done this on html and php but this one is on dotnet .. and i am not able to understand
also how to redirect the post link named as /Default.aspx to website URL

What I have tried:

I have tried many things but they didnt work as its my first time on Dot Net please help me out guyz

解决方案

Here is an example to redirect XXXXXXX.com to www.XXXXXXX.com
Scott Forsyth's Blog - IIS URL Rewrite – rewriting non-www to www[^]

Here is an example on how to redirect
How to: Redirect Users to Another Page[^]


use Response.redirect() method to redirect from one page to another page or can redirect to external Url.

Ex: Response.Redirect ("one.aspx");

External Site:

Response.Redirect("www.codeproject.com");


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

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