John
12-11-2002, 12:07 PM
I'm having some trouble redirecting a client from a subdomain to the main domain. Here is the script I am using:
<?php
session_start();
$_SESSION["name"] = 'This is a redirection from '.$_SERVER["HTTP_HOST"];
header("Location: http://www.appointit.com");
exit;
?>
I get a "page not found" error when this script is run. And yet, when I enter the URL above directly into the browser I get the page that I am trying to redirect to.
I may not understand HOW a subdomain works, and need some help with it.
Any advice would be greately appreciated (especially if it works! :D)
John
<?php
session_start();
$_SESSION["name"] = 'This is a redirection from '.$_SERVER["HTTP_HOST"];
header("Location: http://www.appointit.com");
exit;
?>
I get a "page not found" error when this script is run. And yet, when I enter the URL above directly into the browser I get the page that I am trying to redirect to.
I may not understand HOW a subdomain works, and need some help with it.
Any advice would be greately appreciated (especially if it works! :D)
John