你能帮我吗? [英] Can you help?

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

问题描述

基本上,我正在寻找的是某种脚本,我可以放入我的服务器上的
a文件夹,当有人访问该特定文件夹时(我是

要删除文件夹中的所有文件,因为我移动了网站),

脚本检测到文件不存在,并自动将它们重定向到新的

位置(有点像聪明的404页面)。


因为我没有直接访问我服务器的设置(例如编辑404

页面等),我不能做到正常方式。


任何人有任何想法,建议,脚本,参考链接?


-

问候


Steven Burn

Ur IT Mate Group首席执行官
www.it-mate.co.uk


免责声明:

我知道我可能错了,我只是喜欢参加:o)

Basically, what I''m looking for, is some sort of script that I can drop into
a folder on my server, and when someone visits that specific folder (I''m
going to remove all file''s from the folder as I''ve moved the site), the
script detects the file is not there, and auto-redirects them to the new
location (kind of like a "clever" 404 page).

As I do not have direct access to my server''s settings (such as editing 404
pages etc), I cannot do it the "normal" way.

Anyone have any ideas, suggestions, scripts, reference links?

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk

Disclaimer:
I know I''m probably wrong, I just like taking part :o)

推荐答案

有一个名为default.asp的asp页面。


在该页面中输入<%response.redirect http:// www .mysite%>


谁在乎脚本是否检测到文件夹为空。文件夹是

空了.. ?? .. ?? ?? !!?> ??


wtf

你刚才说你将把文件夹清空


" Steven Burn" < ceo@PVT_it-mate.co.uk>在消息中写道

新闻:Ob ************** @ TK2MSFTNGP10.phx.gbl ...
have an asp page called default.asp.

In that page put <%response.redirect http://www.mysite%>

Who cares whether script detects that the folder is empty. The folder is
empty anyway..??..??..!!?>??

wtf
You just said you will empty the folder


"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
基本上,我是什么我正在寻找,是某种脚本,我可以将
放入我服务器上的文件夹中,当有人访问该特定文件夹时(我将要删除所有文件)我移动了网站的文件夹),
脚本检测到文件不存在,并自动将它们重定向到新的
位置(有点像聪明404页面) 。

因为我没有直接访问我服务器的设置(例如编辑
404页面等),所以我无法做到正常的设置。方式。

任何人有任何想法,建议,脚本,参考链接?

-
问候

Steven Burn 你的IT Mate Group首席执行官
www.it-mate.co.uk

免责声明:
我知道我可能错了,我只是喜欢参与:o)
Basically, what I''m looking for, is some sort of script that I can drop into a folder on my server, and when someone visits that specific folder (I''m
going to remove all file''s from the folder as I''ve moved the site), the
script detects the file is not there, and auto-redirects them to the new
location (kind of like a "clever" 404 page).

As I do not have direct access to my server''s settings (such as editing 404 pages etc), I cannot do it the "normal" way.

Anyone have any ideas, suggestions, scripts, reference links?

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk

Disclaimer:
I know I''m probably wrong, I just like taking part :o)


是的但是,人们和搜索引擎仍在尝试访问旧页面


-

问候


Steven Burn

Ur IT Mate Group首席执行官
www.it-mate.co.uk


免责声明:

我知道我可能错了,我只是喜欢参加:o)

Jeff Clark< ; JeffC@NO_SPAMreturnventures.com>在消息中写道

news:uN ************* @ TK2MSFTNGP10.phx.gbl ...
Yes but, people and search engines are still trying to access the old pages

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk

Disclaimer:
I know I''m probably wrong, I just like taking part :o)
Jeff Clark <JeffC@NO_SPAMreturnventures.com> wrote in message
news:uN*************@TK2MSFTNGP10.phx.gbl...
有一个名为default的asp页面.asp。

在该页面中输入<%response.redirect http://www.mysite%>

谁在乎脚本是否检测到文件夹为空。无论如何文件夹是空的.. ?? .. ?? .. !!?> ??

你只是说你要清空文件夹


史蒂文伯恩 < ceo@PVT_it-mate.co.uk>在消息中写道
新闻:Ob ************** @ TK2MSFTNGP10.phx.gbl ...
have an asp page called default.asp.

In that page put <%response.redirect http://www.mysite%>

Who cares whether script detects that the folder is empty. The folder is
empty anyway..??..??..!!?>??

wtf
You just said you will empty the folder


"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
基本上,我在找什么,是某种脚本,我可以将
Basically, what I''m looking for, is some sort of script that I can drop


放入我的服务器上的


into

文件夹中,当有人访问该特定文件夹时(我正在进行)当我移动网站时,从文件夹中删除所有文件,
脚本检测到文件不在那里,并自动将它们重定向到新的位置(有点像一个聪明的404页面。

因为我没有直接访问我服务器的设置(例如编辑
a folder on my server, and when someone visits that specific folder (I''m
going to remove all file''s from the folder as I''ve moved the site), the
script detects the file is not there, and auto-redirects them to the new
location (kind of like a "clever" 404 page).

As I do not have direct access to my server''s settings (such as editing


404


404

页面等),我无法做到正常方式。

任何人有任何想法,建议,脚本,参考链接?

-
问候

Steven Burn 你的IT Mate Group首席执行官
www.it-mate.co.uk

免责声明:
我知道我可能错了,我只是喜欢参与:o)
pages etc), I cannot do it the "normal" way.

Anyone have any ideas, suggestions, scripts, reference links?

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk

Disclaimer:
I know I''m probably wrong, I just like taking part :o)



如果它是一个ASP站点并且页面是.asp,那么在Session_OnStart子中使用Global.asa和

重定向。每次请求ASP

页面时都会启动,没有会话活动。

您还可以使用自定义404错误页面重定向(这就是方式MS,我相信它是



参见:
http://www.plinko.net/404/howto.asp?article=5
http://hotwired.lycos.com/webmonkey/ .. .tml?tw = backend
http: //www.highcontext.com/Articles/howto/404.php

希望这会有所帮助,


克里斯。


" Steven Burn" < ceo@PVT_it-mate.co.uk>在消息中写道

新闻:%2 ****************** @ TK2MSFTNGP12.phx.gbl ...

是的但是,人们和搜索引擎仍然试图访问旧页面


-

问候


Steven Burn

Ur IT Mate Group首席执行官
www.it-mate.co.uk


免责声明:

我知道我可能错了,我只是喜欢参加:o)

Jeff Clark< ; JeffC@NO_SPAMreturnventures.com>在消息中写道

news:uN ************* @ TK2MSFTNGP10.phx.gbl ...
If its an ASP site and the pages are .asp then use the Global.asa and
redirect in the Session_OnStart sub. That will kick off every time an ASP
page is requested with no session active.
You can also use a custom 404 error page to redirect (that''s the way MS do
it I believe).

See:
http://www.plinko.net/404/howto.asp?article=5
http://hotwired.lycos.com/webmonkey/...tml?tw=backend
http://www.highcontext.com/Articles/howto/404.php

Hope this helps,

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Yes but, people and search engines are still trying to access the old pages

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk

Disclaimer:
I know I''m probably wrong, I just like taking part :o)
Jeff Clark <JeffC@NO_SPAMreturnventures.com> wrote in message
news:uN*************@TK2MSFTNGP10.phx.gbl...
有一个名为default的asp页面.asp。

在该页面中输入<%response.redirect http://www.mysite%>

谁在乎脚本是否检测到文件夹为空。无论如何文件夹是空的.. ?? .. ?? .. !!?> ??

你只是说你要清空文件夹


史蒂文伯恩 < ceo@PVT_it-mate.co.uk>在消息中写道
新闻:Ob ************** @ TK2MSFTNGP10.phx.gbl ...
have an asp page called default.asp.

In that page put <%response.redirect http://www.mysite%>

Who cares whether script detects that the folder is empty. The folder is
empty anyway..??..??..!!?>??

wtf
You just said you will empty the folder


"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
基本上,我在找什么,是某种脚本,我可以将
Basically, what I''m looking for, is some sort of script that I can drop


放入我的服务器上的


into

文件夹中,当有人访问该特定文件夹时(我正在进行)当我移动网站时,从文件夹中删除所有文件,
脚本检测到文件不在那里,并自动将它们重定向到新的位置(有点像一个聪明的404页面。

因为我没有直接访问我服务器的设置(例如编辑
a folder on my server, and when someone visits that specific folder (I''m
going to remove all file''s from the folder as I''ve moved the site), the
script detects the file is not there, and auto-redirects them to the new
location (kind of like a "clever" 404 page).

As I do not have direct access to my server''s settings (such as editing


404


404

页面等),我无法做到正常方式。

任何人有任何想法,建议,脚本,参考链接?

-
问候

Steven Burn 你的IT Mate Group首席执行官
www.it-mate.co.uk

免责声明:
我知道我可能错了,我只是喜欢参与:o)
pages etc), I cannot do it the "normal" way.

Anyone have any ideas, suggestions, scripts, reference links?

--
Regards

Steven Burn
Ur I.T. Mate Group CEO
www.it-mate.co.uk

Disclaimer:
I know I''m probably wrong, I just like taking part :o)






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

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