Page 1 of 1

Help with mobile direction and CMSMS

Posted: Thu Jan 24, 2013 6:44 pm
by Recon
Hi,

I am trying to do my first mobile direction. I have mobile version of the site in url "http://www.domain.com/m. What is the right way to build mobile site with CMSMS? I mean how to build site hierarchy and where do redirect.

I have now redirection code to redirect mobile devices to url m.domain.com and it works fine.

I have subdomain set to m.domain.com and document root is /public_html/m

Now mobile redirect to url m.domain.com and it is empty. There are folder named "m" in root folder. How can I redirect to right place? Am I doing it wrong?

tips please :)

-R

Re: Help with mobile direction and CMSMS

Posted: Sat Jan 26, 2013 2:00 am
by paulbaker
Recon wrote:tips please :)
Depends on what your site is, of course, but personally I wouldn't have different URLs for different devices (do you redirect an ipad to the mobile site? An ipad-mini? It gets tricky to decide what is "mobile" and what isn't).

Better, I think, to use media queries and change CSS layout depending on screen width.

http://www.javascriptkit.com/dhtmltutor ... ries.shtml

Then, each page has 1 URL regardless of what device you are using to view it.

Re: Help with mobile direction and CMSMS

Posted: Sat Jan 26, 2013 8:00 am
by Recon
Thank you paulbaker,

I have done site layout like you just sayd with media queries, but I still want to redirect some users to spesific page of my CMSMS (other template). And this page I want to be m.domain.com

Maybe with htaccess to change it's url or something

-R