Bonboni's avatar

accessing to the backend from a subdomain

Hi everyone!

I am using laravel for crud and cms purposes. I have a frontend and backend. Both backend and frontend is loading from the public folder.

From the Cpanel I have pointed my domain to the public folder. So, the website is loading when I type www.site.com and the backend is loading after login verification when I type www.site.com/dashboard

I would like to seperate my backend from the frontend. I would like to access to the backend from the url admin.site.com or cms.site.com and I would like to access to the front end from the url www.site.com.

How can I manage to do this? I can point the subdomain to the public folder as well and can load the backand from the url cms.site.com/dashboard but the backend still would be accessible from the url www.site.com/dashboard.

I would appreciate if you can give me an idea about seperating the frontend from the backend.

0 likes
1 reply

Please or to participate in this conversation.