login with subdomain

Permalink
Hi All,

I'm new with Concrete5 so i trying some stuff out. So far i'm amazed by the possibilities but there is one thing I would like to be differently.

Question: Is it possible to make a subdomain witch can be used to login and the dashboard etc etc instead of the site.com/index.php/login and site.com/dashboard?
I would prefer a subdomain to controle the site, so i keep back-end and front-end separate from each-other.

Thnx in advance!

 
mkly replied on at Permalink Reply
mkly
Someone may correct me on this, but from what I understand everything needs to go through the dispatcher so everything needs to go through index.php. Therefore I don't think it would be possible right now.

That said, I'm not sure if there could be something you could do through mod_rewrite in Apache to solve this outside of Concrete5
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
What if you turn on "Pretty URLs" in the Sitewide Settings in the Dashboard? Then setup your subdomains to point to the correct paths.

For instance:

login.yourdomain.com --> yourdomain.com/login

dashboard.yourdomain.com --> yourdomain.com/dashboard

Technically, everything is still passing through the dispatcher, but it's being "masked" by the "Pretty URLs".

It's worth a shot, anyway!
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
OK... so much for my idea. Just tested it... and got a "You don't have permissions to access that folder" message. So... this might require some .htaccess tweaking to do a re-write of the incoming URL to the correct path in order to get it to work.
gtjw replied on at Permalink Reply
Thnx I'm going to try it.
have to tweek a lot a think. Not only the .htacces but the core as well (button at the top that goes to the dashboard and maybe even more)
arrestingdevelopment replied on at Permalink Reply
arrestingdevelopment
Ah... so you want your "rebranding" of the domains for login and dashboard to be complete... i.e. the user NEVER sees the "live" domain in the URL when logged in? That's certainly a different beast.

I was thinking that you just wanted to have a convenient URL to be able to provide to users in order to access the login/dashboard. Not to mask the domain permanently in the interface.

Sounds daunting... good luck!
gtjw replied on at Permalink Reply
Thats right.
Only for the page editing the main domain can been seen of course, but for the rest I would like to keep it totally separated.

I already know it wouldn't be easy, but it's a nice challenge to see if I can make it work (correctly without to much of tweeking).
If i do, I'll let you know.

Any extra info is always welcome.
mkly replied on at Permalink Reply
mkly
Since you seem to realize this is more of an academic exercise I'll bite and give my 2 cents.

If I really wanted to do this I would try creating two sites. One with the subdomain and one with the regular domain. Has them both use a similar config/site.php

Have them use the same database and password salt.

On the admin subdomain I would change BASE_URL to the subdomain URL but keep everything else the same.

I have no idea if this would actually work though.

You probably have to change DIR_BASE too. Maybe.
gtjw replied on at Permalink Reply
haha thnx

I'm going to give it a try.
Now we have 3 options (so var)
- Domain-forwarding by htacces and some core code changing.
- Make 2 separate concrete installs
- Simlink the necessary folders and files, so I don't have to use some extra unnecessary files and folders and can use this in more sites I manage at the moment easily.

The free weekend is upcoming, so I have a mission for this one :D