how to make mobile site like facebook (4 posts)

  1. pankajbhatt1993
    Posted 1 year ago #

    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

  2. roiabrazaldo
    Posted 1 year ago #

    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.

  3. pankajbhatt1993
    Posted 1 year ago #

    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.

  4. roiabrazaldo
    Posted 1 year ago #

    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


Topic Closed

This topic has been closed to new replies.

About this Topic