Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:46 PM
Howard Kelley
Guest
 
Posts: n/a
Default HTML Code for Forwarding

What is the HTML code for forwarding one page to another? I recall
there is a meta statement that can used. In other words, I want
browser inquiries to http://xxx.xx to go immediately to http://yyy.yyy
  #2  
Old July 20th, 2005, 06:46 PM
Michael Wilcox
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

Howard Kelley <hkelley@yahoo.com> wrote:[color=blue]
> What is the HTML code for forwarding one page to another? I recall
> there is a meta statement that can used. In other words, I want
> browser inquiries to http://xxx.xx to go immediately to http://yyy.yyy[/color]

It would be best to use a standard redirect, like the PHP header() function.
Do you have PHP? See http://www.w3.org/QA/Tips/reback for more on standard
redirects.
--
Michael Wilcox
mjwilco at yahoo dot com
Essential Tools for the Web Developer - http://mikewilcox.t35.com


  #3  
Old July 20th, 2005, 06:46 PM
Neal
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

On 20 Feb 2004 14:05:15 -0800, Howard Kelley <hkelley@yahoo.com> wrote:
[color=blue]
> What is the HTML code for forwarding one page to another? I recall
> there is a meta statement that can used. In other words, I want
> browser inquiries to http://xxx.xx to go immediately to http://yyy.yyy[/color]


If you cannot do it in the header of the site, the best HTML code is
something along the lines of:

<p>We've reorganized the site. Please continue to <a href="xxx.html">the
page you're looking for</a> and update your bookmark.</p>
  #4  
Old July 20th, 2005, 06:47 PM
Alan J. Flavell
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

On Fri, 20 Feb 2004, Howard Kelley wrote:
[color=blue]
> What is the HTML code for forwarding one page to another?[/color]

HTML is markup, it doesn't *do* things. Where did you get the idea
that HTML was some kind of command language?
[color=blue]
> I recall there is a meta statement that can used.[/color]

As far as HTML is concerned, the "meta" tag is just a container.
The container can contain all kinds of stuff, some standards-defined
and some just de facto, without HTML really caring what they are.
[color=blue]
> In other words, I want browser inquiries to http://xxx.xx to go
> immediately to http://yyy.yyy[/color]

But do your readers want that?

If you set out the real-life requirement, rather than your
"recollection" of something half-remembered and, with respect,
apparently not well-understood, perhaps a good answer would be
possible. But all too often, questions get the answer that they
deserve, rather than the one that they really need.

(My hunch: you might need HTTP 30x status from the server.)
  #5  
Old July 20th, 2005, 06:47 PM
Howard Kelley
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

"Alan J. Flavell" <flavell@ph.gla.ac.uk> wrote in message news:<Pine.LNX.4.53.0402202321160.1496@ppepc56.ph. gla.ac.uk>...[color=blue]
> On Fri, 20 Feb 2004, Howard Kelley wrote:
>[color=green]
> > What is the HTML code for forwarding one page to another?[/color]
>
> HTML is markup, it doesn't *do* things. Where did you get the idea
> that HTML was some kind of command language?
>[color=green]
> > I recall there is a meta statement that can used.[/color]
>
> As far as HTML is concerned, the "meta" tag is just a container.
> The container can contain all kinds of stuff, some standards-defined
> and some just de facto, without HTML really caring what they are.
>[color=green]
> > In other words, I want browser inquiries to http://xxx.xx to go
> > immediately to http://yyy.yyy[/color]
>
> But do your readers want that?
>
> If you set out the real-life requirement, rather than your
> "recollection" of something half-remembered and, with respect,
> apparently not well-understood, perhaps a good answer would be
> possible. But all too often, questions get the answer that they
> deserve, rather than the one that they really need.
>
> (My hunch: you might need HTTP 30x status from the server.)[/color]

The answer to my question -- despite the rather snide remarks from Mr.
Flavell -- is the Meta tag known as REFRESH.

For example: <meta http-equiv="REFRESH"
content="1;URL=HTTP://WWW.xxx.yyy/zzz.htm">

This line on a blank page will forward to another address after a
1-second delay."

You may quibble that HTML doesn't "do anything" but this little line
does route you to another site or page with a minimum of effort. There
are other more exotic ways of accomplishing this but I was looking for
something simple.

Dear Mr. Flavell -- I was coding HTML long before you could spell
it...but sometimes we all have lapses of memory and manners.
  #6  
Old July 20th, 2005, 06:47 PM
Owen Jacobson
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

On Sat, 21 Feb 2004 19:35:03 -0800, Howard Kelley wrote:
[color=blue]
> The answer to my question -- despite the rather snide remarks from Mr.
> Flavell -- is the Meta tag known as REFRESH.[/color]

Do you understand what Mr. Flavell wrote? For that matter, do you
understand what *you* wrote? I doubt.
[color=blue]
> For example: <meta http-equiv="REFRESH"
> content="1;URL=HTTP://WWW.xxx.yyy/zzz.htm">
>
> This line on a blank page will forward to another address after a
> 1-second delay."
>
> You may quibble that HTML doesn't "do anything" but this little line
> does route you to another site or page with a minimum of effort. There
> are other more exotic ways of accomplishing this but I was looking for
> something simple.[/color]

Not in my browser. Mine[1] actually renders it as an *optional* redirect
with the originating page's content below. There is a mechanism in the
web for redirecting browsers much more reliably than this: HTTP
redirection. If your hosting service doesn't allow you to do this, find a
better one. If you're simply too lazy to find the correct solution to
your problem, don't expect us to hold your hand with a half-assed patch
job.
[color=blue]
> sometimes we all have lapses of memory and manners.[/color]

Obviously. Pray come back when you understand why your solution is a bad
idea and why your grasp of what HTML is and is not is loose at best.

[1] Lynx.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

  #7  
Old July 20th, 2005, 06:48 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

It seems "Howard Kelley" wrote in
comp.infosystems.www.authoring.html:[color=blue]
>For example: <meta http-equiv="REFRESH"
>content="1;URL=HTTP://WWW.xxx.yyy/zzz.htm">
>
>You may quibble that HTML doesn't "do anything" but this little line
>does route you to another site or page with a minimum of effort.[/color]

It also destroys your visitors' "back" button and slows down their
browsing.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
  #8  
Old July 20th, 2005, 06:48 PM
Alan J. Flavell
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

On Sun, 22 Feb 2004, Owen Jacobson wrote:
[color=blue]
> On Sat, 21 Feb 2004 19:35:03 -0800, Howard Kelley wrote:
>[color=green]
> > The answer to my question -- despite the rather snide remarks from Mr.
> > Flavell -- is the Meta tag known as REFRESH.[/color]
>
> Do you understand what Mr. Flavell wrote? For that matter, do you
> understand what *you* wrote? I doubt.[/color]

I am sometimes curious as to why certain people stubbornly promote
widely-known bad answers, even when confronted with the
well-engineered soluion. One might draw certain conclusions from the
fact that they rarely ask for more details of what the questioner is
really trying to achieve, nor make any attempt to bring the questioner
up to speed on relevant concepts (in fact, as in this case, they'd
prefer to obfuscate the issues of just where the defined interworking
boundaries lie), nor make any mention of the potential disadvantages
of their promoted method - which suggests that they're either unaware
of them (which is no position to be in when offering advice) or prefer
not to reveal them (which is worse).

After all, by the time that the questioner learns about such problems
they adviser will probably be long gone, like certain "consultants" I
could remember having to deal with.

http://groups.google.com/groups?as_u...oward%20kelley
[color=blue][color=green]
> > For example: <meta http-equiv="REFRESH"
> > content="1;URL=HTTP://WWW.xxx.yyy/zzz.htm">
> >
> > This line on a blank page will forward to another address after a
> > 1-second delay."[/color][/color]

It might do that, or not, depending on the client agent and user
options. What it will surely do is earn a WAI violation, amongst
other disadvantages. And search engines will have no clear idea
what's going on.
[color=blue][color=green]
> > You may quibble that HTML doesn't "do anything" but this little line
> > does route you to another site or page[/color][/color]

As I said, as far as HTML is concerned, "meta" is just a container.
HTML doesn't deal with the details of what that container could hold.

In this case it's purporting to be an http-equiv, meaning that it's
purporting to be equivalent to some specified HTTP header. But
RFC2616 doesn't codify such a header - it's a vendor extension, which
indeed has been rather widely implemented, but like all vendor
extensions, it's been done with the aim of wowing the suggestible,
rather than achieving a well-engineered solution to an already-solved
problem.

This extension does have its uses, I admit, in appropriate contexts
and with consenting users; but as a substitute for HTTP status 30x it
can only be rated as bogus, by anyone who understands the wider
picture.
[color=blue][color=green]
> > with a minimum of effort.[/color][/color]

Naturally, the "minimum of effort" by the author is always preferable
to doing the job properly in the interests of the user - well, in some
people's catechism, anyway. Sigh.
  #9  
Old July 20th, 2005, 06:48 PM
Michael Wilcox
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

Howard Kelley <hkelley@yahoo.com> wrote:[color=blue]
> The answer to my question -- despite the rather snide remarks from Mr.
> Flavell -- is the Meta tag known as REFRESH.[/color]

No, it's known as a meta tag.
[color=blue]
> This line on a blank page will forward to another address after a
> 1-second delay."
> You may quibble that HTML doesn't "do anything" but this little line
> does route you to another site or page with a minimum of effort.[/color]

Not in every browser. I've got my web filter, Proxomitron, set to remove any
"refreshes" as replace them with text links. I maitain the usability of my
back button this way.

The refresh function is something that can be recognized by many, but not
all, browsers (or users).
[color=blue]
> There
> are other more exotic ways of accomplishing this but I was looking for
> something simple.[/color]

I think the exotic ways your are thinking of are actually the correct ways,
if you're refering to anything like a standard redirect. More at
http://www.w3.org/QA/Tips/reback
--
Michael Wilcox
mjwilco at yahoo dot com
Essential Tools for the Web Developer - http://mikewilcox.t35.com


  #10  
Old July 20th, 2005, 06:48 PM
kaeli
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

In article <96bcbc09.0402211935.4aacd4f6@posting.google.com >,
hkelley@yahoo.com enlightened us with...[color=blue]
>
> The answer to my question -- despite the rather snide remarks from Mr.
> Flavell -- is the Meta tag known as REFRESH.
>
> For example: <meta http-equiv="REFRESH"
> content="1;URL=HTTP://WWW.xxx.yyy/zzz.htm">
>
> This line on a blank page will forward to another address after a
> 1-second delay."
>[/color]

Not in my IE6 it won't. I disable that crap.

--
--
~kaeli~
Santa's helpers are subordinate clauses.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

  #11  
Old July 20th, 2005, 06:49 PM
Eric Cartman
Guest
 
Posts: n/a
Default Re: HTML Code for Forwarding

hkelley@yahoo.com (Howard Kelley) wrote in message[color=blue]
> The answer to my question -- despite the rather snide remarks from Mr.
> Flavell -- is the Meta tag known as REFRESH.
>
> Dear Mr. Flavell -- I was coding HTML long before you could spell
> it...but sometimes we all have lapses of memory and manners.[/color]

Well said and about time to. The guy is a jumped up prick.

EC
..
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles