473,765 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic Redirection

Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?

Sorry if this is simple, but I am sometimes simple myself.

Happy New Year
--
Gerry
http://www.pbase.com/gfoley9999/
http://foley.ultinet.net/~gerry/aerial/aerial.html
http://home.columbus.rr.com/gfoley
http://www.fortunecity.com/victorian...ypt/egypt.html
Jul 23 '05 #1
52 5458
On Tue, 28 Dec 2004 00:16:39 GMT, "Gerard M Foley"
<gf****@columbu s.rr.com> wrote:
Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?


Sure; read up on how your www server is designed to handle such things.

HTTP response codes should be your matter of interest.

--
Rex
Jul 23 '05 #2
On Tue, 28 Dec 2004 04:08:03 +0100, Jan Roland Eriksson <jr****@newsguy .com>
wrote:
On Tue, 28 Dec 2004 00:16:39 GMT, "Gerard M Foley"
<gf****@columb us.rr.com> wrote:
Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?


Sure; read up on how your www server is designed to handle such things.

HTTP response codes should be your matter of interest.

cryptic eh?

I think he speaks of this kind of thing ...
http://www.checkupdown.com/status/E303.html

another way is to make your "landing" page a single frame frames page, and make
the source of that frame your redirection URL ... this is used by many "parking"
services like :-

<html>
<head>
<!-- url = http://homepage.ntlworld.com/xxxxxxxxx/ -->
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"><title>xxxxx xxxxx</title></head>
<frameset rows="100%,*" border="0" framespacing="0 " frameborder="0" >
<frame src="http://homepage.ntlwor ld.com/xxxxxxxxx/">
</frameset>
<noframes>
<body>
The website for jimlawton.info can be found by clicking <a
href="http://homepage.ntlwor ld.com/xxxxxxxxxx/">here</a>.
xxxxxxxxxxis registered through <a href="http://easily.co.uk">E asily.co.uk - get
web site hosting or domain name registration here</a><br></body>
</noframes>
</html>

HTH

Jim
Jul 23 '05 #3
Jim Lawton <uc**@use.your. initiative> wrote:
I think he speaks of this kind of thing ...
http://www.checkupdown.com/status/E303.html
Then you haven't understood the question, still less the answer.
This is a common symptom of trying to help without even reading the
FAQs first.

(303 response code is very special, and it is highly improbable that
the OP wanted anything like that)
another way is to make your "landing" page a single frame frames
page, and make the source of that frame your redirection URL ...


So you insist on suggesting "solutions" that in reality just create
problems.

Please keep your forged From field as a cluelessness/trolling indicator
until you wish to contribute something useful.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #4
On Tue, 28 Dec 2004 11:36:08 +0000 (UTC), "Jukka K. Korpela"
<jk******@cs.tu t.fi> wrote:
Jim Lawton <uc**@use.your. initiative> wrote:
I think he speaks of this kind of thing ...
http://www.checkupdown.com/status/E303.html
Then you haven't understood the question, still less the answer.
This is a common symptom of trying to help without even reading the
FAQs first.


I think I did. The answer isn't an answer but a hint.
(303 response code is very special, and it is highly improbable that
the OP wanted anything like that)
But how would we know?

another way is to make your "landing" page a single frame frames
page, and make the source of that frame your redirection URL ...


So you insist on suggesting "solutions" that in reality just create
problems.


I don't "insist", I offer a common solution.If you were to explain why it
creates problems, then we might learn something, as it is, we are left in
"ignorance" .
Please keep your forged From field as a cluelessness/trolling indicator
until you wish to contribute something useful.


My from field isn't forged, it is a hint. It is only necessary for anyone to
google to find out who I am, as I use my own name, not a common thing amongst
trolls.

I thank you for your curteous and helpful contribution. Please don't hesitate to
post more in the same vein if it makes you feel better. It might be more useful
to help the OP with his problem, however, as I tried to.

Jim
jml at jimlawton dot info

Jul 23 '05 #5
On Tue, 28 Dec 2004 08:43:03 GMT, Jim Lawton
<uc**@use.your. initiative> wrote:
On Tue, 28 Dec 2004 04:08:03 +0100, Jan Roland Eriksson <jr****@newsguy .com>
wrote:
On Tue, 28 Dec 2004 00:16:39 GMT, "Gerard M Foley"
<gf****@colum bus.rr.com> wrote:
Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?
Sure; read up on how your www server is designed to handle such things.
HTTP response codes should be your matter of interest.

cryptic eh?
Not at all; what the OP is asking for has been a standard function in
the HTTP protocol from day one of its existence.
I think he speaks of this kind of thing ...
http://www.checkupdown.com/status/E303.html
That's "bull" if you forgive me for saying it out loud.

The OP has a "hunch" that it should be possible to type in a URL in
his www client, send that URL as part of an HTTP request to a server
that in turn redirects his www client to request another URL resource
instead.

That's simple as PI; configure the server to return an HTTP "302 Moved
Temporarily" header as a response to the first URL. There's not even a
need to actually have a specific resource (page) in storage at the
server for that first URL.

For any decent www server, all it takes is a few lines of plain text
in a configuration file for that server. (for Apache that would be an
entry in the users own .htaccess file)
another way is to make your "landing" page a single frame frames page...


And that's even worse than your first suggestion. Why do you insist to
cross the river to fetch water?

--
Rex
Jul 23 '05 #6
On Tue, 28 Dec 2004 14:02:42 +0100, Jan Roland Eriksson <jr****@newsguy .com>
wrote:
On Tue, 28 Dec 2004 08:43:03 GMT, Jim Lawton
<uc**@use.your .initiative> wrote:
On Tue, 28 Dec 2004 04:08:03 +0100, Jan Roland Eriksson <jr****@newsguy .com>
wrote:
On Tue, 28 Dec 2004 00:16:39 GMT, "Gerard M Foley"
<gf****@colu mbus.rr.com> wrote:
Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?

Sure; read up on how your www server is designed to handle such things.
HTTP response codes should be your matter of interest.
cryptic eh?
Not at all; what the OP is asking for has been a standard function in
the HTTP protocol from day one of its existence.
I think he speaks of this kind of thing ...
http://www.checkupdown.com/status/E303.html


That's "bull" if you forgive me for saying it out loud.

The OP has a "hunch" that it should be possible to type in a URL in
his www client, send that URL as part of an HTTP request to a server
that in turn redirects his www client to request another URL resource
instead.

That's simple as PI; configure the server to return an HTTP "302 Moved
Temporarily" header as a response to the first URL. There's not even a
need to actually have a specific resource (page) in storage at the
server for that first URL.


Maybe that's the kind of pointer he was looking for?
For any decent www server, all it takes is a few lines of plain text
in a configuration file for that server. (for Apache that would be an
entry in the users own .htaccess file)


Well, he might not have access to his server, for instance...
another way is to make your "landing" page a single frame frames page...


And that's even worse than your first suggestion. Why do you insist to
cross the river to fetch water?


The firt wasn't "my suggestion", it was what your first post led me to
conjecture.

Well, he might not have access to his server, for instance...

And if it's such a dreadful suggestion, why is it the technique used by one of
the major domain name sellers in the UK? And I don't think I "insisted" did I?

Jim

Jul 23 '05 #7
Jan Roland Eriksson <jr****@newsguy .com> wrote:
That's simple as PI; configure the server to return an HTTP "302
Moved Temporarily" header as a response to the first URL.


Why 302? In the absence of evidence to the contrary, it seems obvious
that people really want something that means _permanent_ (301)
redirection. For some odd reason, Apache uses 302 as the default, but
we need not imitate that.

Even if the redirection is "temporary" in the everyday sense (e.g.,
John Doe is moving his pages from server A to server B and might well
soon move them to server C, the redirection should normally be
permanent in the HTTP sense (see
http://www.w3.org/Protocols/rfc2616/...html#sec10.3.2 ).

If e.g. a search engine is checking things out, it should observe the
change and store the B address into its data base, throwing the old one
away. Otherwise*) there's the risk that later, when the site has been
moved to C, the search engine finds an A address in its data base and
tries to use it but that server no longer exists or the redirection has
been removed (e.g. because the person no longer pays for it), so the
search engine will not find the B address and get redirected to C.

*) For temporary redirection, the correct action for a search engine is
to use it to fetch the actual content but keep the old address in its
data base and return it in search results.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #8
JRS: In article <k9************ *************** *****@4ax.com>, dated
Tue, 28 Dec 2004 04:08:03, seen in news:comp.infos ystems.www.authoring.h
tml, Jan Roland Eriksson <jr****@newsguy .com> posted :
On Tue, 28 Dec 2004 00:16:39 GMT, "Gerard M Foley"
<gf****@columb us.rr.com> wrote:
Can one write a webpage which is not displayed but which simply redirects
the user to another page without any action by the user?


Sure; read up on how your www server is designed to handle such things.

HTTP response codes should be your matter of interest.


Why are the regulars here so determined to be unhelpful given the
slightest excuse? The question that you have given a sort of indirect
answer to is not even the question that was actually asked.

The OP wishes, he says, to write a Web page that redirects; and a Web
page is the material, headers apart, transmitted in response to an HTTP
request; typically, at least, starting <DOCTYPE or <HTML and ending
</HTML>.

He has not asked about configuring a WWW server. It might be useful to
tell him something about that, or to cite explicitly a reliable
reference; but that does not answer the question that he asked. He may
not even have access to server configuration.
The answer to the question asked is "Yes, though I cannot be sure that
it works on all possible systems, nor that formal standards cover the
matter."

And for the question implied, an illustration :
<URL:http://www.merlyn.demo n.co.uk/gravity.htm> summons a page
including, in the <HEAD> section, a line
<META HTTP-EQUIV="REFRESH" CONTENT="2; URL='gravity0.h tm'">,
which, after 2 seconds, summons
<URL:http://www.merlyn.demo n.co.uk/gravity.htm> as a replacement; but
ISTR that one is, or was, advised to include an ordinary link like
<a href="gravity0. htm">gravity0.h tm</a> as a backup.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demo n.co.uk/> - FAQqish topics, acronyms & links;
some Astro stuff via astro.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 23 '05 #9
On Tue, Dec 28, Jim Lawton inscribed on the eternal scroll:
Well, he might not have access to his server, for instance...
Then he's not really publishing pages on the WWW. This is something
that anyone who is putting web pages on the WWW *needs* as a regular
part of their publishing repertoire. And it's so easy to put this
under user control in any serious web server (e.g Apache). Anything
less would be short-changing the user, and they should go moaning to
their service provider, not trying to find excuses to post to usenet.
another way is to make your "landing" page a single frame frames
page...


oh, mercy...
And if it's such a dreadful suggestion, why is it the technique used
by one of the major domain name sellers in the UK?


Without naming names - would we buy a used web page from such
unserious operators?
Jul 23 '05 #10

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

Similar topics

1
1473
by: Andrew | last post by:
I am setting up a web page to collect some data via a questionnaire. The questionnaire part is working fine, but I need some help with one part. I have two different versions of the questionnaire (basically just different orders of questions) and would like the users to be redirected to one of the two versions. The idea I had was to have a redirection page that simply had a web page counter on it (like so many pages have now days) and...
1
2564
by: JoanneC | last post by:
How can I incorporate the following javascript code in an ASP.NET application (using VB.NET) Like the following If textbox1.text = "" then <SCRIPT LANGUAGE="JavaScript" runat="server"> setTimeout("go_now()",5000); function go_now () { window.location.href = "http://testweb.cs.ul.ie/PGrad/JoanneC/Input_Methods.aspx"; }
0
9568
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.