How do I redirect someone to my new page?

Answer Posted / guest

The most reliable way is to configure the server to send out
a redirection instruction when the old URL is requested.
Then the browser will automatically get the new URL. This is
the fastest way to do this. You can of course also simply
put up a small page with a text like "This page has moved to
http://new.url/, please adjust your bookmarks".

A Netscape-only solution, which doesn't work on other
browsers, and screws up the "back" button in Netscape, is

<META HTTP-EQUIV="Refresh" CONTENT="x; URL=new.URL">

which will load the new URL after x seconds. This should go
in the HEAD of the document. But if you do this, also
include a short text saying "Document moved to new URL
so-and-so" for other browsers.

(The screwing-up bit refers to the fact that if you press
"Back" after you have been redirected, you will be taken to
the document with the META refresh. Then the refresh will be
activated, and so you'll jump to the page you just tried to
leave.)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to set colors to borders in html?

488


Is html client side or server side?

448


Steps used to create a tiles application in dhtml?

467


Is audio tag supported in html 5?

447


What are the three main aims of html5?

598






Is body a container tag?

456


What has the same effect as two br tags?

486


How can we include google maps on a website?

457


What is anchor tag and how can you open an url into a new tab when clicked?

466


What is html tags used for?

455


Which browsers support dhtml and how will non-supporting browsers handle dhtml?

499


Explain about canvas.

473


What is html labelfor?

464


Differentiate between localStorage and sessionStorage objects.

491


How to insert javascript in html?

502