Redirect Mobile and desktop page

Avatar
  • Answered
lets say name.com is my domain name. I want to have index page to have the ability to send mobile device to page mobile.name.com and send desktop users to desktop.name.com.
now there is many scripts to redirect mobile device but will net redirect desktop users.
please help
Avatar
Scott
Hello, Thank you for your question on redirecting some users to mobile.example.com and others to desktop.example.com. You would simply set a normal redirect to desktop.example.com so if the mobile redirect did not trigger, then the desktop redirect would. To do this, set the mobile redirect above the normal redirect in your .htaccess file. You can learn how to set your redirects by using our 301 redirect guide. Kindest Regards, Scott M