I have a situation where i have an page-about.php page on my site and i have a separate about page for mobile, page-about-mobile.php.
When i share a link to this page on social media, a user clicking on the link on his desktop must go to the desktop version page-about.php and if a user clicks on that link on mobile he must go to the page-about-mobile.php.
What are my options to do this? Is this possible?
I have seen a few posts about possibly being able to do it with .htaccess but i’m wondering what the best solution would be to this.
A normal page redirect i could do in .htaccess with the following:
Redirect 301 /oldpage.php http://www.yoursite.com/newpage.php