You are here: Re: PHP Redirect « PHP Programming Language « IT news, forums, messages
Re: PHP Redirect

Posted by John Dunlop on 01/16/07 16:47

Arjen:

> Use meta refresh
> <meta http-equiv="refresh" content="0;URL=http://www.url.ext/" />

The meta refresh can be bewildering, all the more so if
the user isn't looking at the page when it "redirects". It
can knock the user's mental model out of kilter.

And, as Michael pointed out, it can also break the Back
button, because as soon as you go Back to the page with the
meta refresh, it "redirects" you again. Hitting the Back
button twice with a delay of zero is tricky.

The meta refresh also doesn't offer different types of
"redirect" - for example, permanent, temporary - but only one
fake redirect, lodged in the markup of the page.

And some browsers don't even support the meta refresh,
still others allow you to turn it off, so you would have to
offer another means of getting to the new page, such as a link.

What do you gain from the meta refresh and would it not be
better to either simply link to the new page or set up a real
redirect?

--
Jock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация