You are here: Re: how this works (redirection??) « HTML « IT news, forums, messages
Re: how this works (redirection??)

Posted by Mark Parnell on 08/11/05 02:59

Previously in alt.html,alt.apache.configuration, siliconmike
<siliconmike@yahoo.com> said:

> Many times you go to a website, say xyz.org
> The moment it opens up in browser window, the address is changed to
> www.xyz.com in the title bar.

Please use example.com for example urls. That's what it's there for. :-)

> Basically, how is this achieved ?

Usually by sending a 301 (moved permanently) or 302 (found) HTTP status
code to the browser, pointing to the other site. Others in the 3xx
series could also be used, as appropriate.

> Am I looking at an apache configuration ?

Assuming your site is hosted with Apache, of course. ;-) Yes, it can be
done on the web server. It can also be done in a server-side scripting
language, such as PHP:

header('Location: http://www.example.com/');

> Or is this an html trick ?

It can (kind of) be done in HTML, as per Neredbojias' post, but is
better handled server-side.

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/

 

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

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