PDA

View Full Version : Redirections break subdomains



thoroughfare
07-02-2004, 01:10 AM
Hi,

I have a client who has a 'Site Redirect' so that when you access http://www.thesite.com/, it redirects to http://www.thesite.com/adirectory/.

They've added a new subdomain, but when accessed, it's simply redirecting to http://www.thesite.com/adirectory/.

His redirects are:


Local URL Path Redirect URL
/forum http://www.floridastreetscene.com/forums
/index.htm http://www.floridastreetscene.com/forums
/admin https://rubix.retroweb.net:2222/


Any help much appreciated,
Matt :)

nobaloney
07-02-2004, 11:21 AM
That's because the subdomain is implemented in DA as a subdirectory.

To make this work they should set up the subdomain as a completely separate domain.

Jeff

thoroughfare
07-02-2004, 03:19 PM
No way around it then?

Thanks,
Matt

ctnchris
07-02-2004, 10:53 PM
You could always get rid of the redirect, make a file called index.php, and put



<?

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

?>

edit: fixed code, Vb parsed the url even though its in the php tag o.o