• I want to create a staging environment for multiple clients accessible from a single point of entry, i.e. stage.domain.com for all clients. Each of their individual sites are served from subdirectories. I want to have each of these sites password protected and I want them all to be able to login to view their specific site from stage.domain.com. From there, I want them routed to their specific site and not have to enter a un or pw again.

    Does this make sense and does anyone have any ideas? Thanks for reading.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    At first I thought a Multisite installation would be a good solution, but exporting individual sites from multisite to another host is rather complicated. Perhaps individual subdirectory staging sites do make more sense. In order to have a single login, the individual sites would need an auto-login scheme triggered by an appropriate nonce included in the forwarding request from the landing site which put up the initial login.

    After verifying the nonce, the user can be logged into a specific site by code without a password with wp_set_auth_cookie(). This could be done through a custom landing page on each site. When it comes time to export the site, remove the page and related template, which removes the auto-login functionality and the site then requires individual logins as usual.

Viewing 1 replies (of 1 total)
  • The topic ‘User Routing to Different PW Protected Site’ is closed to new replies.