So it prints the URL that I enter the site from, so if I use www.domain.com it prints www.domain.com and if I use www.domain2.com it prints www.domain2.com.
The problem is it is not redirecting to the page I want. If they use www.domain.com I want it to go to domain.php and if they use www.domain2.com I want it to to domain2.php