You are here: redirection, same host, two domains « PHP « IT news, forums, messages
redirection, same host, two domains

Posted by Alexandru Martin on 03/25/05 18:36

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация