WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. simprule
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/wptouch/

  2. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 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

About this Topic

Tags