I have a mobile application created by an outside company. I was told to add a "php if" statement to the index.php to check if a phone is accessing the website. If yes, it will forward to a another page.
Is there anywhere this code can be added so that I don’t have to change the index.php every time there is a security update or another patch is made to the core?
Thanks and regards