Support » Plugins and Hacks » [Plugin: WPtouch] URL Rewriting?

[Plugin: WPtouch] URL Rewriting?

  • simprule


    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?


Viewing 1 replies (of 1 total)
  • Plugin Author BraveNewCode Inc.


    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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WPtouch] URL Rewriting?’ is closed to new replies.