OT?:框架集,重定向和URL地址 [英] OT?: framesets, redirects, and URL address

查看:89
本文介绍了OT?:框架集,重定向和URL地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,


我将整个ASP驱动的网站放在一个框架框架中,以便在浏览器中保留一个

的静态URL的地址栏。我还有一个自定义的404页面

将访问者重定向到顶部的默认框架集。重定向有效,但

被叫,不存在的URL仍保留在浏览器的地址栏中。是否有任何

方式将地址栏中的浏览器地址刷新到网站的

默认的框架集地址?我尝试使用window.location-type javascript,

但重定向卡在永久循环中停留。


感谢您的任何建议,


Dave

解决方案

David Shorthouse写道:

我有我的整个ASP驱动的网站在单帧框架集中,以便在浏览器的地址栏中保留静态URL。我还有一个
自定义的404页面,可以将访问者重定向到顶部的默认
框架集。重定向有效,但被叫,不存在的URL仍然在浏览器的地址栏中。有没有办法将地址栏中的浏览器地址刷新到网站默认的框架集
地址?




为什么重要?

-

戴夫安德森


未经请求的商业电子邮件将以


每条消息500条。使用

此电子邮件地址即表示同意这些条款。请不要直接联系

我或要求我直接与您联系以获取帮助。如果你的问题值得询问,那就值得发帖了。


David Shorthouse写道:< blockquote class =post_quotes>我将整个ASP驱动的网站放在一个框架框架中,以便在浏览器的地址栏中保留静态URL。我还有一个
自定义的404页面,可以将访问者重定向到顶部的默认
框架集。重定向有效,但被叫,不存在的URL仍然在浏览器的地址栏中。有没有办法将地址栏中浏览器的地址刷新到网站默认的框架集地址?



为什么这有关系吗?




好​​吧,因为如果有人通过一个不存在的

网址访问过该网站,那么我已经定制了404页面重定向到默认网站,

地址栏中的地址仍然会读取不存在的

网址。

Dave


Hey folks,

I have my entire ASP-driven site in a one-frame frameset to preserve a
static URL in a browser''s address bar. I also have a customized 404 page to
redirect a visitor to the top, default frameset. The redirect works, but the
called, nonexistent URL remains in the browser''s address bar. Is there any
way to refresh a browser''s address in the address bar to that of the site''s
default, frameset address? I tried using a window.location-type javascript,
but the redirects get stuck in a perpetual loop.

Thanks for any advice,

Dave

解决方案

David Shorthouse wrote:

I have my entire ASP-driven site in a one-frame frameset to
preserve a static URL in a browser''s address bar. I also have a
customized 404 page to redirect a visitor to the top, default
frameset. The redirect works, but the called, nonexistent URL remains
in the browser''s address bar. Is there any way to refresh a browser''s
address in the address bar to that of the site''s default, frameset
address?



Why does it matter?
--
Dave Anderson

Unsolicited commercial email will be read at a cost of


500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it''s worth posting.


David Shorthouse wrote:

I have my entire ASP-driven site in a one-frame frameset to
preserve a static URL in a browser''s address bar. I also have a
customized 404 page to redirect a visitor to the top, default
frameset. The redirect works, but the called, nonexistent URL remains
in the browser''s address bar. Is there any way to refresh a browser''s
address in the address bar to that of the site''s default, frameset
address?



Why does it matter?



Well, because if someone were to have visited the site via a non-existent
URL, been given my customized 404 page with a redirect to the default site,
the address in their address bar would still read that of the non-existent
URL.

Dave


这篇关于OT?:框架集,重定向和URL地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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