Hello All –
I’m not sure if this can be done with mod-rewrite and htaccess but here’s what I’m after:
I’ve got a CMS driven project under development that serves all pages (frontend and backend) via mod-rewrite in my htaccess file.
Frontend pages are triggered via a URI such as www.example.com (frontend home page); www.example.com/accommodations, etc.
Backend pages are triggered via a URI such as www.example.com/private (backend CMS login page), www.example.com/private/members, etc.
What I’d like to do is remove the “private” from the backendURI and use a subdomain-like trigger such as: www.private.example.com (which would serve the backend CMS login page), www.private.example.com/members, etc.
To be clear, I don’t want to actually create a subdomain… all I want to do is create a “private” trigger of sorts linked to the host name which would be trapped by mod-rewrite which I can then just parse through a PHP script.
Is there a way to do this… or something like this?
All advice/guidance greatly appreciated