• Hi

    I have a wordpress site where i want to setup a separate theme for mobileusers so i have my site running on mydomian.com where everything currently is. and im going to setup a redirected to mydomain.com/mobile/ for everyone that visits my site with a phone. and i wonder how i can setup a mirror site that uses the same database so that if mydomian.com is updated with a new post the same update should be seen on mydomian.com/mobile/

    How can i do this ?

Viewing 1 replies (of 1 total)
  • Although you may want to look into responsive design in order to have just one site but with different looks on desktop and mobile, it is possible to have two sites that both use the same database.

    As long as you point both sites to the same database, with the same username/password, you should get the same content.

    You may run into other problems though, cause the URL/address of the site is kept in the database, so you’ll have to work around that to make sure that http://www.mydomain.com/mobile does not point to http://www.mydomain.com.

    Also, to have a subdirectory “/mobile/” in your existing WordPress site will cause friction, because going to http://www.mydomain.com/mobile will try to resolve a post or page called “mobile” in the first site.

    All the more reason to look into responsive design, or just find a theme that is responsive.

Viewing 1 replies (of 1 total)

The topic ‘2 sites 1 database’ is closed to new replies.