Ready to get started?Download WordPress


Two Installs, Same Database (2 posts)

  1. jaechick
    Posted 2 years ago #

    I'd like to have two installations of wp running from the same database; one public facing, read only & without /wp-admin, the other internal facing and (ideally) write only. While it seems like a relatively simple setup I can't find any documentation about setting this up.

    What I'm trying to achieve is an environment where a client will log into his site at login.domain.com, produce content there which populates the db which then publishes to domain.com for reading. His site regularly get's hacked and I'm attempting to secure.

    I'm getting hung up on the _options table which in my best estimation would have to be unique to each install to allow for different urls per install. I came across this which seems a relevant though dated solution.

    Anyone have any suggestions or advise for achieving this? Is this concept sound? Is there a simpler method to achieve this?

  2. toocoolone
    Posted 2 years ago #

    Here's a few articles I found surfing around that might help you...

    • Relocate your wp-config.php file. This helps protect your database password.
    • You can use .htaccess to hide your wp-admin folder on the public site as well. This will hide the login from public view unless they know the secret URL.

    Blocking access to wp-admin is okay, but there are some dependancies that WordPress likely will still need on your public site. But these methods don't require a subdomain unless you just want one.

    I've not tried these solutions, but they seem solid to me and I probably will at some point in the future.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.