tibiz Posted October 13, 2010 Share Posted October 13, 2010 Hello, I have domain "A" coming with a wehosting and a domain "B" , it's DNS is redirected to domain "A". Now I'm solving how to catch the url (domain name) of "B", that is redirecting to me. Is it possible throught PHP ? Thak you Quote Link to comment https://forums.phpfreaks.com/topic/215764-catching-url-of-website-that-redirected-to-me/ Share on other sites More sharing options...
anups Posted October 13, 2010 Share Posted October 13, 2010 you can use $_SERVER["HTTP_REFERER"] Quote Link to comment https://forums.phpfreaks.com/topic/215764-catching-url-of-website-that-redirected-to-me/#findComment-1121734 Share on other sites More sharing options...
tibiz Posted October 13, 2010 Author Share Posted October 13, 2010 thank you. I know about $_SERVER["HTTP_REFERER"] it work when I click in browser window on a link which is referring to my website. but domain "B" is reditercted to domain "A" through DNS settings. Quote Link to comment https://forums.phpfreaks.com/topic/215764-catching-url-of-website-that-redirected-to-me/#findComment-1121752 Share on other sites More sharing options...
tibiz Posted October 13, 2010 Author Share Posted October 13, 2010 Any ideas to solve this problem ? Quote Link to comment https://forums.phpfreaks.com/topic/215764-catching-url-of-website-that-redirected-to-me/#findComment-1121764 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.