Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know how to redirect browsers based on user-agent to the mobile site.

However I am having trouble allowing mobile users to view more then one version of a full pages.

Here is the scenario:

  • Mobile user comes into the site
  • User-agent is detected and redirected to the mobile site accordingly
  • User views a html page but wants to view the full version
  • User clicks the url with a ?ver=full parameter
  • This prevents the user from being redirected to the mobile site again
  • While on the full site the user clicks another link, they want to stay on the full version but because the link does not have the ?ver=full parameter they get redirected to the mobile site.

Note that all these pages are html (not php/asp) so this logic has to be done in Apache

Idears?

share|improve this question
1  
I may only suggest looking forward [CO] flag (cookies); httpd.apache.org/docs/current/rewrite/flags.html#flag_co –  LazyOne Jul 12 '11 at 19:16

1 Answer 1

up vote 0 down vote accepted

You can add code to your application to write cookies into clients browser, this will help you to determine which page user wants to see :)

share|improve this answer
    
These pages are all in html so I don't have an application language to work with –  ckliborn Jul 13 '11 at 14:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.