META重定向 [英] META redirect

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

问题描述

您好,我将此代码重定向到
http:// www.domain.com/link.html 。 。 。但我希望在重定向网站之前指定NUMBER

OF SECONDS。有人可以帮助我。 。

..


< meta http-equiv ="刷新"

content =" 4; url = http://www.domain.com/link.html">

请帮助。谢谢。

Hello, I have this code which redirects to
http://www.domain.com/link.html . . . but I want to specify the NUMBER
OF SECONDS before the site is redirected. Can somebody here help me . .
..

<meta http-equiv="Refresh"
content="4;url=http://www.domain.com/link.html">
PLEASE HELP. Thanks.

推荐答案

2006年5月17日星期三11:55:33 +0200,IveCal< iv ***** @ gmail.com>写道:
On Wed, 17 May 2006 11:55:33 +0200, IveCal <iv*****@gmail.com> wrote:
我有这个代码重定向到
http://www.domain.com/link.html 。 。 。但是我想在重定向站点之前指定NUMBER
OF SECONDS。有人可以帮助我。 。


< meta http-equiv ="刷新"
content =" 4; url = http://www.domain.com/link.html" ;>
I have this code which redirects to
http://www.domain.com/link.html . . . but I want to specify the NUMBER
OF SECONDS before the site is redirected. Can somebody here help me . .
.

<meta http-equiv="Refresh"
content="4;url=http://www.domain.com/link.html">




如果你用Google搜索

<网址:http://www.google.com/search?q = meta +重定向+ OR +刷新>在

你可能找到的前几个结果中:

< URL:http://www.htmlhelp.org/reference/html40/head/meta.html>和

< URL:http://www.seologic.com/faq/meta-refresh-tag.php>


两者都有很好的信息。

-

______PretLetters:

|博客| http://www.pretletters.net/weblog/weblog.html |

| webontwerp | http://www.pretletters.net/html/webontwerp.html |

| zweefvliegen | http://www.pretletters.net/html/vliegen.html |



Had you Googled
<URL:http://www.google.com/search?q=meta+redirect+OR+refresh> within the
first few results you would have found:
<URL:http://www.htmlhelp.org/reference/html40/head/meta.html> and
<URL:http://www.seologic.com/faq/meta-refresh-tag.php>

Both have good information.
--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |


2006年5月17日,IveCal写道:
On 17 May 2006, IveCal wrote:
< meta http-equiv =" Refresh"
content =" 4; url = http://www.domain.com/link.html">
<meta http-equiv="Refresh"
content="4;url=http://www.domain.com/link.html">




不要这样做!
http://www.w3.org/QA/Tips/reback


-

工作人员已经死了 - 严重的口音还活着。
http://www.workingmansdeath.com/imag...kinoplakat.gif



Don''t do that!
http://www.w3.org/QA/Tips/reback

--
The working man is dead - the acute accent is alive.
http://www.workingmansdeath.com/imag...kinoplakat.gif


Andreas Prilop写道:
Andreas Prilop wrote:
2006年5月17日,IveCal写道:
On 17 May 2006, IveCal wrote:
< meta http-equiv =" Refresh"
content =" 4; url = http://www.domain.com/link.html">
<meta http-equiv="Refresh"
content="4;url=http://www.domain.com/link.html">



不要这样做!
http://www.w3.org/QA/Tips/reback




虽然你一般都是正确的,但我有一个意思是刷新是

确实是我知道完成我想要的唯一方法。


我想动态创建并显示所有网页的格式化索引,作为一个

HTML网页。我有一个SSI脚本创建Web

页面。但是,要执行该脚本,必须首先由服务器提供引用它的网页




用户请求我的< http: //www.rossde.com/get_index.html> ;.这个

会显示一个告诉访问者等待的页面,但如果新页面确实没有加载
,请选择Go按钮。


< http://www.rossde.com/get_index.html>导致SSI脚本get_index.ksh

执行,创建文件index_list.html。

< http://www.rossde.com/get_index.html>还包含

< META HTTP-EQUIV =" Refresh" CONTENT =" 1;

URL = http://www.rossde.com/index_list.html">

这会导致生成的< http:/ /www.rossde.com/index_list.html>

替换< http://www.rossde.com/get_index.html>在浏览器窗口中。


1秒延迟是为了确保脚本确实在提供该文件之前关闭了生成的文件。但是,我怀疑Apache对SSI脚本的处理将确保文件关闭

甚至在< http://www.rossde.com/get_index之前html的>负载。


-


David E. Ross

< http://www.rossde。 com />


关注某人(例如,布什总统)在你的电子邮件中窥探
?使用PGP。

请参阅我的< http://www.rossde.com/PGP/>



While you are generally correct, I have an intance where the Refresh is
indeed the only way I know to accomplish what I want.

I want to create and display a formatted index of all my Web pages as an
HTML Web page, on the fly. I have an SSI script that creates the Web
page. However, to execute that script, a Web page that refers to it
must first be served by the server.

The user requests my <http://www.rossde.com/get_index.html>. This
displays a page telling the visitor to wait but that, if a new page does
not load soon, select the Go button.

<http://www.rossde.com/get_index.html> causes SSI script get_index.ksh
to execute, creating file index_list.html.
<http://www.rossde.com/get_index.html> also contains
<META HTTP-EQUIV="Refresh" CONTENT="1;
URL=http://www.rossde.com/index_list.html">
This then causes the generated <http://www.rossde.com/index_list.html>
to replace <http://www.rossde.com/get_index.html> in the browser window.

The 1 sec delay is to ensure that the script has indeed closed the
generated file before that file is served. However, I suspect that the
handling of SSI scripts by Apache would ensure that the file is closed
before even <http://www.rossde.com/get_index.html> loads.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>


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

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