quickstopman Posted September 24, 2007 Share Posted September 24, 2007 hey guys, i have a website thats a subdomain. the problem is that i don't want people to get into the site through site.com/subdomain i made a little script but its not too effective <?php $url_thing = $_SERVER[HTTP_HOST]; if (!$url_thing == "flameable.getmetola.com") { header("Location:http://flameable.getmetola.com"); } ?> can someone help me make it more effective? thanks! Link to comment https://forums.phpfreaks.com/topic/70489-url-control/ Share on other sites More sharing options...
BlueSkyIS Posted September 24, 2007 Share Posted September 24, 2007 please define "effective". Link to comment https://forums.phpfreaks.com/topic/70489-url-control/#findComment-354088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.