Auto-detecting PC/Mobile and then Redirecting

1
  1. Create two folders in your server called “mobile” and “pc”, each containing the respective versions of your site.
  2. Copy the code below.
  3. Replace the red links with your Mobile and PC destinations.
  4. Save and upload as your index.php
Advertisements