I have an area as Admin
. And it has got a controller as SigninController
. Now this Area is for Admin Area . which I am supposed to map as http://admin.localhost/
Now what Happens is I also have a SigninController
in root . So I currently have to invoke the admin Signin as http://localhost:80/Admin/Signin
. and For root http://localhost/Signin
What I want is to completely separate out the admin area until and unless it is invoked by a subdomain .
I dont want the use to hit the url even if by chance it is http://localhost:80/admin/signin
. He shouldn't be routed to admin signin area . It should be only available via the subdomain url i.e via
http://admin.localhost:80/Admin/Signin
or http://admin.localhost:80/Signin
.
It should be such that the area signin is always invoked when the request url is through a subdomain configuration and not from the root of the project with area name in the url .
How to do that any guidance ?