Hi Guys, i have a domain video.flyefit.ie with lots of subdomains, when people open up a browser based on their IP address i would like if it forwarded onto one of the subdomains so say for instance my ip is 79.140.211.206 and i open up video.flyefit.ie i would like it to redirect to video.flyefit.ie/blanch is this possible?
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
If so you build an IP -> subfolder lookup
Open in new window
Note: The above code is untested but it demonstrates the concept.The getIPAddress() function was obtained from here https://www.w3resource.com/php-exercises/php-basic-exercise-5.php other examples are here https://stackoverflow.com/questions/15699101/get-the-client-ip-address-using-php