asp中的透明重定向 [英] transparent redirection in asp

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

问题描述



如果您在IIS上重定向,则必须使用新地址更新客户端URL地址栏

。有什么选择?

Q1如果用户请求 http://old.com ,是否有一种方法ASP

重定向到 http://new.com

没有更新客户浏览器的地址栏


Q2 ...或者这是这个的主要好处之一IIS URL重写器??


Q3我认为搜索引擎只包含

索引 http://old.com

解决方案

我忘了问是

Q4 URL重写器是否仅在当前域内工作

http://old.domain.com 被重写为 http:// domain.com/new

Q5还有其他吗?重定向到其他域名的方法

隐藏来自客户端

(除了制作服务器端的http请求和使用response.write

来显示它)


" rvj" ; < rv*@rolemodels.netwrote in message

news:uF ************* @ TK2MSFTNGP02.phx.gbl ...


>

如果您在IIS上重定向,则必须使用新地址更新客户端URL地址栏

。有什么选择?


Q1如果用户请求 http:// old .com ,是否有一种方法将ASP

重定向到 http:/ /new.com

没有更新客户端浏览器的地址栏


Q2 ......或者这是其中一个IIS URL重写器的主要好处??


Q3我认为搜索引擎只包含

索引 http://old.com



< blockquote>凝视我的水晶球我观察到rvj < rv*@rolemodels.net>

写新闻:uF ************* @ TK2MSFTNGP02.phx.gbl:


>

如果您在IIS上重定向,则必须使用新地址更新客户端URL地址栏

。有什么选择?


Q1如果用户请求 http:// old .com ,是否有一种方法将ASP

重定向到 http:/ /new.com

没有更新客户端浏览器的地址栏



帧,但是''一个坏主意。你为什么不想更新地址栏

?你不希望用户能够为新地址添加书签吗?


>

Q2 ......或者是这一个IIS URL重写器的主要好处??



如果你在谈论 http://www.example.com/somepage.asp?

string = long& type = very& something = else& etc = etc更改为
http://www.example.com/somepage1234.html 这是一个文件的重写,

不是域名。


>

Q3 and am我认为搜索引擎只包含 http:// old的

索引。 com



如果SE获得301,则会记录并相应地更改其索引

。这比使用

meta http-equivalent元素做客户端要安全得多。当然,如果这是唯一的选择,

那么人们会想要在

文档正文中添加一个新地址的链接,并附有更新书签的说明。


-

Adrienne Boswell在家

Arbpen网站设计服务
http://www.cavalcade-of-coding.info

请回应小组,以便其他人可以分享


" rvj" < rv*@rolemodels.netwrote in message

news:O3 ************** @ TK2MSFTNGP04.phx.gbl ...


我忘了问的是


Q4 URL重写器是否仅在当前域内有效

http://old.domain.com 被重写为 http://domain.com/new


Q5还有其他方法重定向到其他域这是

" hidden"来自客户端

(除了制作服务器端http请求和使用



response.write


显示它)



您的服务器可以代表

客户端向其他服务器发出请求并返回答案。


但是正如Adrienne所问,你为什么需要这个?

-

Anthony Jones - MVP ASP / ASP.NET



if you redirect on an IIS , must the client url address bar always be
updated with the new address. what options are?
Q1 if a user requests http://old.com , is there a method of ASP
redirection to http://new.com
which does not update the client browser''s address bar

Q2 ... or is this one of the main benefits of the IIS URL rewriter ??

Q3 and am I correct in thinking that search engines would only contain
indexes for http://old.com

解决方案

what I forgot to ask is
Q4 whether URL rewriter only works within the current domain

http://old.domain.com is rewritten as http://domain.com/new
Q5 are there any other methods of redirection to other domains which are
"hidden" from the client
(other than making serverside http requests and using response.write
to display it)

"rvj" <rv*@rolemodels.netwrote in message
news:uF*************@TK2MSFTNGP02.phx.gbl...

>
if you redirect on an IIS , must the client url address bar always be
updated with the new address. what options are?
Q1 if a user requests http://old.com , is there a method of ASP
redirection to http://new.com
which does not update the client browser''s address bar

Q2 ... or is this one of the main benefits of the IIS URL rewriter ??

Q3 and am I correct in thinking that search engines would only contain
indexes for http://old.com



Gazing into my crystal ball I observed "rvj" <rv*@rolemodels.net>
writing in news:uF*************@TK2MSFTNGP02.phx.gbl:

>
if you redirect on an IIS , must the client url address bar always be
updated with the new address. what options are?
Q1 if a user requests http://old.com , is there a method of ASP
redirection to http://new.com
which does not update the client browser''s address bar

Frames, but that''s a bad idea. Why would you not want the address bar
updated? Wouldn''t you want the user to able to bookmark the new address?

>
Q2 ... or is this one of the main benefits of the IIS URL rewriter ??

If you are talking about http://www.example.com/somepage.asp?
string=long&type=very&something=else&etc=etc changing to
http://www.example.com/somepage1234.html that''s a rewrite of a document,
not a domain.

>
Q3 and am I correct in thinking that search engines would only contain
indexes for http://old.com

If a SE gets a 301 then it will make note and change its index
accordingly. This is a lot safer than doing it client side with the
meta http-equivalent element. Of course, if that is the only choice,
then one would want to put a link to the new address in the body of the
document, with instructions to update bookmarks.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


"rvj" <rv*@rolemodels.netwrote in message
news:O3**************@TK2MSFTNGP04.phx.gbl...

what I forgot to ask is
Q4 whether URL rewriter only works within the current domain

http://old.domain.com is rewritten as http://domain.com/new
Q5 are there any other methods of redirection to other domains which are
"hidden" from the client
(other than making serverside http requests and using

response.write

to display it)

Your server could make the request to the other server on behalf ot the
client and return the response.

However as was asked by Adrienne, why would you need this?
--
Anthony Jones - MVP ASP/ASP.NET


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

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