Support » Fixing WordPress » how to make mobile site like facebook

  • I want separate site for mobile and desktop like that of facebook site what they are using in mobile is m.example.com, I also want that to happen to my site TrendyHealers.com to have new look in mobile and different in desktop.

    please help how can i do that

Viewing 3 replies - 1 through 3 (of 3 total)
  • example.com is your main website
    m.example.com which means “m” stands for sub-domain in your website. “m” also points to a particular folder in your web directory.

    For example in Cpanel

    user1/public_html/index.html <- this index file will be loaded when you type example.com.

    but for “m” or whatever sub-domain name is, its like this
    user1/public_html/m/index.html <- by default to access this you will do example.com/m

    so you need to configure the sub-domain in your admin panel so that instead of typing example.com/m you will type m.example.com that points on the same directory.

    as for detecting whether the user should go to example.com or m.example.com you may use javascript for redirecting if the user’s browser falls on certain specification.

    Thanks roiabrazaldo, Just want to clear that will google be able to index both of my site TrendyHealers.com and m.TrendyHealers.com , will it be duplicate of main site since it will have same data. so how should I give make site safe in google.

    It maybe a sub-domain but it also acts as independent site, google will index both. to make sure set up both a good SEO and might as well robots.txt

    user1/public_html/robots.txt
    user1/public_html/m/robots.txt

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to make mobile site like facebook’ is closed to new replies.