如何301将default.aspx重定向到root [英] How to 301 redirect default.aspx to root
本文介绍了如何301将default.aspx重定向到root的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何301重定向 www.example.com/default.aspx不使用ISAPI过滤器 www.example.com
?
How can I 301 redirect www.example.com/default.aspx to www.example.com
without using ISAPI filters?
推荐答案
如果我没记错,你不能只在IIS中设置它,我只是用Google搜索
" 301 redirect"并获得了
http:// www。 webconfs.com/how-to-redirect-a-webpage.php 作为第一个链接...
:)
Andrew
" Eirik Eldorsen" < ei *** @ increo.nowrote in message
news:ef **************** @ TK2MSFTNGP05.phx.gbl ...
If i recall correctly, can''t you just set this up in IIS, i just googled
"301 redirect" and got
http://www.webconfs.com/how-to-redirect-a-webpage.php as the first link...
:)
Andrew
"Eirik Eldorsen" <ei***@increo.nowrote in message
news:ef****************@TK2MSFTNGP05.phx.gbl...
我如何301重定向 www .example.com / default.aspx 来 www.example.com
没有使用ISAPI过滤器?
How can I 301 redirect www.example.com/default.aspx to www.example.com
without using ISAPI filters?
是的我现在如何301重定向。问题是使用default.aspx,
而不会导致无限循环。主页有2个网址
www.eample.com/default。 aspx 和 www.example.com 。我想301重定向
任何在url中获得default.aspx的人。
Request.RawUrl在两种情况下都返回default.aspx,所以我可以'弄清楚
如何检查用户是否在他的网址中有default.aspx。
" Andrew Brook" < yk **** @ hotmail.comskrev i melding
新闻:%2 **************** @ TK2MSFTNGP05.phx.gbl ...
Yeah I now how to 301 redirect. The problem is to do it with default.aspx,
without causing an infinite loop. The homepage has 2 url''s
www.eample.com/default.aspx and www.example.com. I want to 301 redirect
anyone who get default.aspx in the url.
Request.RawUrl returns default.aspx in both cases, so i can''t figure out how
to check if the user has default.aspx in his url.
"Andrew Brook" <yk****@hotmail.comskrev i melding
news:%2****************@TK2MSFTNGP05.phx.gbl...
如果我没记错,你不能只在IIS中设置它,我只是用Google搜索
" 301 redirect"并获得了
http:// www。 webconfs.com/how-to-redirect-a-webpage.php 作为第一个链接...
:)
Andrew
" Eirik Eldorsen" < ei *** @ increo.nowrote in message
news:ef **************** @ TK2MSFTNGP05.phx.gbl ...
If i recall correctly, can''t you just set this up in IIS, i just googled
"301 redirect" and got
http://www.webconfs.com/how-to-redirect-a-webpage.php as the first link...
:)
Andrew
"Eirik Eldorsen" <ei***@increo.nowrote in message
news:ef****************@TK2MSFTNGP05.phx.gbl...
>我如何301重定向 www.example.com/default.aspx www.example.com
没有使用ISAPI过滤器?
>How can I 301 redirect www.example.com/default.aspx to www.example.com
without using ISAPI filters?
我使用request.Url.AbsoluteUri似乎除非我在查询字符串中传递
参数,否则工作正常。
-----原始消息-----
来自:Eirik Eldorsen [mailto:ei *** @ increo.no]
发表于:2007年11月26日星期一上午6:46
发布至: microsoft.public.dotnet.framework.aspnet
对话:如何301将default.aspx重定向到root
主题:Re:如何301将default.aspx重定向到root
是的,我现在如何301重定向。问题是使用
default.aspx,
而不会导致无限循环。主页有2个网址
www.eample.com/default。 aspx 和 www.example.com 。我想301重定向
任何在url中获得default.aspx的人。
Request.RawUrl在两种情况下都返回default.aspx,所以我可以'找出
怎么用
检查用户是否在他的网址中有default.aspx。
" Andrew Brook" ; < yk **** @ hotmail.comskrev i melding
新闻:%2 **************** @ TK2MSFTNGP05.phx.gbl ...
I use request.Url.AbsoluteUri which seems to work fine unless I pass a
parameter in the query string.
-----Original Message-----
From: Eirik Eldorsen [mailto:ei***@increo.no]
Posted At: Monday, November 26, 2007 6:46 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: How to 301 redirect default.aspx to root
Subject: Re: How to 301 redirect default.aspx to root
Yeah I now how to 301 redirect. The problem is to do it with
default.aspx,
without causing an infinite loop. The homepage has 2 url''s
www.eample.com/default.aspx and www.example.com. I want to 301 redirect
anyone who get default.aspx in the url.
Request.RawUrl returns default.aspx in both cases, so i can''t figure out
how
to check if the user has default.aspx in his url.
"Andrew Brook" <yk****@hotmail.comskrev i melding
news:%2****************@TK2MSFTNGP05.phx.gbl...
如果我没记错,你不能只在IIS中设置它,我只需
If i recall correctly, can''t you just set this up in IIS, i just
googled
googled
" 301 redirect"并获得了
http:// www。 webconfs.com/how-to-redirect-a-webpage.php 作为第一个
"301 redirect" and got
http://www.webconfs.com/how-to-redirect-a-webpage.php as the first
链接...
link...
>
:)
Andrew
" Eirik Eldorsen" < ei *** @ increo.nowrote in message
news:ef **************** @ TK2MSFTNGP05.phx.gbl ...
>
:)
Andrew
"Eirik Eldorsen" <ei***@increo.nowrote in message
news:ef****************@TK2MSFTNGP05.phx.gbl...
>我如何301重定向 www.example.com/default.aspx 至
>不使用ISAPI过滤器?
>without using ISAPI filters?
>
这篇关于如何301将default.aspx重定向到root的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文