php - My website showing on two domains -


my website showing on 2 domain as, developing on own domain, how can possible, there 1 domain don't know whose? when open link there showing same. hacked, or 1 getting access website?

i don't know how prevent other domain link website.

if case then, please suggest some, how prevent website seen on 2 domains?

i see have put php tag suggest this:

if ($_server['http_host'] != 'rtc') {     exit; } 

however better handle kind of things in http server settings. example apache has virtual named hosts.


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -