How Do I Set Redirect To Mobile Site.

by zaccks
1 replies
  • WEB DESIGN
  • |
Please i want to know how to make a template responsive to detect mobile devices and then redirect a user to the mobile version the website. i am talking about html sites not wordpress.

I'll upload the mobile site to a subdomain of the site.

and is there any advantage of using .mobi extension?

Thanks
#mobile #redirect #set #site
  • Profile picture of the author geekSoftware
    You can do something like this:

    http://pastebin.com/bx01YhTP

    Just insert this code at the top of your website and all mobile devices should be redirected to your mobile site. Also, all files should have extension .php or this code won't work.
    {{ DiscussionBoard.errors[9836495].message }}

Trending Topics