WPtouch Mobile Plugin
[Plugin: WPtouch] URL Rewriting? (2 posts)

  1. simprule
    Posted 3 years ago #

    I'd like to know if anyone would be able to provide any insight into how WPTouch manages to pull off serving a smartphone-formatted wordpress theme, but manages to keep the same URL?

    I am trying to learn how to develop a website that keeps the same URL, but serves two different sites (one desktop, one smartphone).

    Does it essentially detect the user agent, load up the theme and then rewrite the URL?


  2. BraveNewCode Inc.
    Plugin Author

    Posted 3 years ago #

    There are a few theme switching tutorials out there, so search around and I'm sure you find some good articles.

    As well, you can look at the source code for WPtouch to see what's happening.

    Essentially by detecting the user agent we serve our mobile theme instead of the desktop theme to compatible devices.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPtouch Mobile Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic