+2 votes
12 views

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

by (1.7k points)   | 12 views

Please log in or register to answer this question.

Related questions

+2 votes
0 answers
+3 votes
1 answer
asked Mar 30, 2020 by toheed (1.4k points) | 46 views
+2 votes
1 answer
asked Oct 4, 2020 by toheed (1.4k points) | 56 views
+2 votes
1 answer
+1 vote
0 answers
+2 votes
0 answers
asked Jun 20, 2020 by athar (3.3k points) | 23 views
+2 votes
0 answers
+2 votes
0 answers
asked Jun 20, 2020 by athar (3.3k points) | 33 views
+3 votes
0 answers




Welcome to Meansflow - Where Developers and Students Learn, Share, & Build Careers, where you can ask questions and receive answers from other members of the community.
131 questions
94 answers
44 comments
134 users