i try describe issue detailed can.
there 1 live site @ moment, lets http://example.com
i have 1 test site on live server ,and have modify pc's hosts file follows:
xx.xx.xx.xx example.com xx.xx.xx.xx www.example.com
when visit example.com url, see test website . have read tutorials on how check curl if url returns 404 error etc.
i trying check urls curl in php , in order see urls return 404 error.
i have tried lot different code samples, not seem work . there way make curl watch test site, instead of live one? trying add header curlopt , not seem see url.
any ideas?