HighDots Forums  

redirect function

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss redirect function in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fth
 
Posts: n/a

Default redirect function - 08-05-2004 , 03:02 AM






Hi,
Is someone can explain teh function "redirect".
I would like to redirect from one site to another without any action from
the visitor.

Many thanks by advance

Fred



Reply With Quote
  #2  
Old   
Lossed
 
Posts: n/a

Default Re: redirect function - 08-05-2004 , 03:50 AM






In the head, type:

<meta http-equiv="refresh" content="0;URL=0">

Replace the first 0 with the delay in seconds before the page refreshes, and
the second 0 with the web address of the page you want to redirect to.
For example, to redirect the page to one called MyRedirectTarget.htm
straight away without any delay you would type in:

<meta http-equiv="refresh"
content="0;URL=http://www.MyWebSite/MyRedirectTarget.htm">

If you just want to refresh the current page, after say 5 seconds it would
be something like:

<meta http-equiv="refresh" content="5">

Note, this meta tag must be in the head - between the <head> and </head>
tags.

HTH

"fth" <infoNOSPAM (AT) matloc (DOT) be> wrote

Quote:
Hi,
Is someone can explain teh function "redirect".
I would like to redirect from one site to another without any action from
the visitor.

Many thanks by advance

Fred





Reply With Quote
  #3  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: redirect function - 08-05-2004 , 07:56 AM



Note also that if your visitor presses the browser's back button after the
redirect, they will then be trapped in 'redirect hell' since the page they
go back to will redirect again.

Why do you need to do this?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Lossed" <blankemail (AT) hotmail (DOT) com> wrote

Quote:
In the head, type:

meta http-equiv="refresh" content="0;URL=0"

Replace the first 0 with the delay in seconds before the page refreshes,
and
the second 0 with the web address of the page you want to redirect to.
For example, to redirect the page to one called MyRedirectTarget.htm
straight away without any delay you would type in:

meta http-equiv="refresh"
content="0;URL=http://www.MyWebSite/MyRedirectTarget.htm"

If you just want to refresh the current page, after say 5 seconds it would
be something like:

meta http-equiv="refresh" content="5"

Note, this meta tag must be in the head - between the <head> and </head
tags.

HTH

"fth" <infoNOSPAM (AT) matloc (DOT) be> wrote in message
news:4111db8a$0$482$ba620e4c (AT) news (DOT) skynet.be...
Hi,
Is someone can explain teh function "redirect".
I would like to redirect from one site to another without any action
from
the visitor.

Many thanks by advance

Fred







Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: redirect function - 08-05-2004 , 09:07 AM



.oO(Lossed)

Quote:
In the head, type:

meta http-equiv="refresh" content="0;URL=0"
"Note. Some user agents support the use of META to refresh the current
page after a specified number of seconds, with the option of replacing
it by a different URI. Authors should _not_ use this technique to
forward users to different pages, as this makes the page inaccessible to
some users. Instead, automatic page forwarding should be done using
server-side redirects."
(<http://www.w3.org/TR/html4/struct/global.html#h-7.4.4.2>)

Micha



Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.