Jump to content

url control


quickstopman

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.