Mobile or desktop browser detection and redirect to respective web page
问题 I'm building a website in PHP which contains flash in its index page. I want to redirect users who are accessing my site via any mobile browser to page m.index.php which doesn't contain flash(simple page) for loading purposes. For others who access via desktop browser to index.php which contains flash in it. How can I redirect each user based on their platform? 回答1: You could use .htaccess like in this answer or in this answer or you could check the user-agent in php: <?php $useragent=$