Help with mobile direction and CMSMS

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am

Help with mobile direction and CMSMS

Post 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
Last edited by Dr.CSS on Fri Feb 01, 2013 5:34 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Help with mobile direction and CMSMS

Post 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.
Recon
Forum Members
Forum Members
Posts: 200
Joined: Sat Oct 09, 2010 10:23 am

Re: Help with mobile direction and CMSMS

Post 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
Post Reply

Return to “The Lounge”