View Single Post
Old 10-10-2007, 01:08 PM   #2 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Perfect thanks. It's my Birthday :) ! To redirect like you're asking, the easiest way is possibly PHP's way. Although you could do down the .HTACCESS route if you were that way inclined.

PHP Code:
header('location: http://www.myDomain.com/' $_SERVER['HTTP_HOST'] . '/');
exit; 
Note: We issue exit so that browsers that choose not to redirect there (Very few - really only when browsing with a terminal application such as Telnet that's not really a browser) would still exit at that point. See this article for further information.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote