10-10-2007, 01:08 PM
|
#2 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
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.
|
|
|