How do I redirect someone to my new page?



How do I redirect someone to my new page?..

Answer / 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

More HTML DHTML Interview Questions

Why are browsers so fussy about XML? They were more accepting with HTML.

1 Answers  


What is difference between sgml and html?

0 Answers  


Write an example that shows every attribute must have a value in xhtml?

0 Answers  


What are the technologies that we use in dhtml?

0 Answers  


What does td and tr stand for?

0 Answers  






Is html5 flash?

0 Answers  


What are the various elements provided by HTML 5 for media content?

0 Answers  


Explain some formatting tags in html?

0 Answers  


How do I get a button which takes me to a new page?

1 Answers  


How to validate xhtml documents online?

0 Answers  


How do you create an index?

0 Answers  


What is a tag in html?

0 Answers  


Categories