473,408 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Can you help?

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)

Jul 19 '05 #1
16 1763
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 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)

Jul 19 '05 #2
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...
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
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)


Jul 19 '05 #3
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...
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
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)



Jul 19 '05 #4
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need
to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless
of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other pages
accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
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
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)



Jul 19 '05 #5
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need
to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless
of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other pages
accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
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
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)




Jul 19 '05 #6
It's an IIS server.

I've spoken with my host about it but, unfortunately, they aren't able to
provide that service for me.

Thanks anyway.

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#C**************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless
of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other pages accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
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
> 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)
>
>
>



Jul 19 '05 #7
How about just putting in new versions of the old pages? Each new version,
just redirects to your new site.
Obviously, that wouldn't work for images, but it would catch most of the
users.

"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 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)

Jul 19 '05 #8
How about you change the DNS entries for that host header to point to an web
server that will (OK, you'd have to find an ASP host that's willing to
provide the redirection or a free host on apache etc.)?
This is of course presuming you have access to your domains DNS entries /
nameserver.

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
It's an IIS server.

I've spoken with my host about it but, unfortunately, they aren't able to
provide that service for me.

Thanks anyway.

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#C**************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless
of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other pages accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
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
> 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)
>
>
>




Jul 19 '05 #9
Tom B wrote:
"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 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).
...
How about just putting in new versions of the old pages? Each new
version, just redirects to your new site.


seems to be the O/Ps best option given the constraints.
Obviously, that wouldn't work for images, but it would catch most of
the users.


why not?

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #10
If it's an ASP site then do what Chris recommended.

Otherwise, put this script in each html page on the site:

<script Language="JavaScript">
window.navigate("http://www.mynewsite.com");
</script>

Any old page accesses via search engines will direct the browser to the new
site.

Mike

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless
of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other pages accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
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
> 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)
>
>
>



Jul 19 '05 #11
Because the o/p has no control over the server, so an end user requesting
http://server/image1.jpg will get an error.
Although....the images could also be replaced with an image containing the
new url.
"William Tasso" <ne****@tbdata.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
Tom B wrote:
"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 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).
...

How about just putting in new versions of the old pages? Each new
version, just redirects to your new site.


seems to be the O/Ps best option given the constraints.
Obviously, that wouldn't work for images, but it would catch most of
the users.


why not?

--
William Tasso - http://WilliamTasso.com

Jul 19 '05 #12
I was going to do a re-direction with Javascript but, there's over 300 pages
:o( (very time consuming to do that).

--
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)
Mike Florio <mi**@micro-point.com> wrote in message
news:vq************@corp.supernews.com...
If it's an ASP site then do what Chris recommended.

Otherwise, put this script in each html page on the site:

<script Language="JavaScript">
window.navigate("http://www.mynewsite.com");
</script>

Any old page accesses via search engines will direct the browser to the new site.

Mike

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need
to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other

pages
accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
> 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
> > 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)
> >
> >
> >
>
>



Jul 19 '05 #13
hehe, don't have access to those either :o(

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
How about you change the DNS entries for that host header to point to an web server that will (OK, you'd have to find an ASP host that's willing to
provide the redirection or a free host on apache etc.)?
This is of course presuming you have access to your domains DNS entries /
nameserver.

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
It's an IIS server.

I've spoken with my host about it but, unfortunately, they aren't able to
provide that service for me.

Thanks anyway.

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#C**************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need
to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other

pages
accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
> 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
> > 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)
> >
> >
> >
>
>



Jul 19 '05 #14
Cheers for the suggestion Tom. That seems like my best option at the moment.

Unfortunately, that means I'd have to do that for all 300+ pages :o(

--
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)
Tom B <sh*****@NOSPAMhotmail.com> wrote in message
news:ua**************@tk2msftngp13.phx.gbl...
How about just putting in new versions of the old pages? Each new version, just redirects to your new site.
Obviously, that wouldn't work for images, but it would catch most of the
users.

"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
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)


Jul 19 '05 #15
So who is your ISP?
They should provide access to the nameserver?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
hehe, don't have access to those either :o(

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
How about you change the DNS entries for that host header to point to an web server that will (OK, you'd have to find an ASP host that's willing to
provide the redirection or a free host on apache etc.)?
This is of course presuming you have access to your domains DNS entries /
nameserver.

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
It's an IIS server.

I've spoken with my host about it but, unfortunately, they aren't able to
provide that service for me.

Thanks anyway.

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#C**************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods
available in IIS for non .asp (and .asp of course) pages and .asp pages
respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you
though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they need
to be set at server level, and can't be simply "dropped" into a folder.
Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other

pages
accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
> 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
> > 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)
> >
> >
> >
>
>




Jul 19 '05 #16
I'm using Inspiratech Ltd (www.inspiratech.uk.com) for my hosting and domain
name

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:eJ**************@TK2MSFTNGP09.phx.gbl...
So who is your ISP?
They should provide access to the nameserver?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eI**************@TK2MSFTNGP11.phx.gbl...
hehe, don't have access to those either :o(

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
How about you change the DNS entries for that host header to point to an

web
server that will (OK, you'd have to find an ASP host that's willing to
provide the redirection or a free host on apache etc.)?
This is of course presuming you have access to your domains DNS entries /
nameserver.

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl...
It's an IIS server.

I've spoken with my host about it but, unfortunately, they aren't able to provide that service for me.

Thanks anyway.

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#C**************@TK2MSFTNGP11.phx.gbl...
I believe that the custom 404 and Global.asa methods are the only methods available in IIS for non .asp (and .asp of course) pages and .asp pages respectively.

If it's apache then you may be able to do it with the .htaccess file?

You may be able to ask your host to set it up for you - might charge you though?

Chris.

"Steven Burn" <ceo@PVT_it-mate.co.uk> wrote in message
news:eA****************@TK2MSFTNGP11.phx.gbl...
Chris, unfortunately, they're a mix of .jpg, .gif and .html pages.

I've read about the custom 404 pages, but from what I can gather, they

need
to be set at server level, and can't be simply "dropped" into a folder. Unfortunately I don't have access to my site's actual server settings.

Basically what I need is a re-direct script that will re-direct regardless of whether file's are in the folder or not. using a default.asp or
index.html etc page is fine, however, that won't trap any of the other

pages
accessed.....(hope I am making sense?)

--
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)
Chris Barber <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:#I**************@tk2msftngp13.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...
> > 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
> > > 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)
> > >
> > >
> > >
> >
> >
>
>
>



Jul 19 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both...
10
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.