redirection, same host, two domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okay, here is my problem. I had a site hosted on a sub domain (mysite.domain.com) , now I registered my own domain, mysite.com . The thing is mysite.com is still hosted on mysite.domain.com. What i want to do is : If people type in their browsers mysite.domain.com redirect to mysite.com and if they type mysite.com to display the page.
I'm guessing it should be something like this : if ( refferer = mysite.domain.com ) { redirect to mysite.com } else { my html code }


P.S: I need this because I don't want google to think it's a duplicate site.

Thank you,
Alexandru Martin.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux