| 
	
 | 
 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] 
 |