Support » Networking WordPress » Pull from one database for 2 domains?

  • Resolved chaos67731


    Here is what I am trying to do, I want to run every thing off to the domain ( and make it so there is a mobile version but on a sub-domain. I have set up and moved over all the files to the new folder for the sub domain and it works ok/ish.

    What is the best way to do this?
    I am wanting it so the mobile uses the same data base just so the post stay the same.

    And why I so it works ok/ish is because everything on the still point to so it shows up but just does not work 100%

    Thanks for the help!

    James R.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Why not use a mobile app plugin?

    No need for a second install.

    I am wanting the mobile version of the site to be on

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    You still don’t need multisite for this. You can redirect your subdomain ( to the mobile URL with .htaccess

    Not that you can’t use multisite for this, but it’s a lot more work.

    Im not sure I get what your saying, I know I can use .htaccess to sent all mobile users to the but I am wanting the to be the same thing as the full site just cut down a lot. (mobile friendly)

    when I add *cf_action=show_mobile* to the end of the url nothing seems to change.

    Do you have a blog post or is there somewhere in the wiki that can give me more information on this?

    Moderator Ipstenu (Mika Epstein)


    Lead Plugin Wrangler

    Other way around 🙂

    You want to redirect the subdomain to your MAIN site. Somethign like this? (UNTESTED CODE!)

    # SubDomains
    RewriteCond %{HTTP_HOST} ^ [OR]
    RewriteCond %{HTTP_HOST} ^
    RewriteRule ^(.*)$$1 [L]

    The idea is that when someone hits it transparently redirects (but does NOT change the URL) to grab the show mobile version.

    If you want a mobile website from the same WordPress installation and the same database as your desktop blog, you can use a mobile plugin for that.
    This plugin for example redirects mobile users to a URL of your choice.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pull from one database for 2 domains?’ is closed to new replies.