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! Quote 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". Quote Link to comment https://forums.phpfreaks.com/topic/70489-url-control/#findComment-354088 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.