Jump to content

Back-end sub-domain access


Mike Rockett
 Share

Recommended Posts

I'd like to be able to access the back-end of each site I create from a sub-domain. I'm sure this is quite possible, I just don't know what route to take, considering that PW does not take this into account (not designed to allow for it). I'd also like it if I could redirect from /processwire to siteadmin.example.com (for example).

Sure, this is just a semantics thing, and doesn't have anything to do with security. That said, I do create a bunch of other sub-domains for my clients so that they can manage their email accounts, signatures, etc. As such, I'd like everything to follow a pattern.

Is this possible at all? How would I go about it?

Link to comment
Share on other sites

The easiest way would probably be redirecting the requests of the subdomain to the admin backend via .htaccess. Or maybe use symlinks to the folders and just use .htaccess to remove the "/processwire" part of the url. Or map both domains to the same folder and use .htaccess to do stuff dependent on the domain. So it should be no problem, just a bit of rewrite trickery.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...