I would like to have domain.com using asp.net mvc2 technology and domain.com/blog would use php. Is it possible to do this on server and to isolate this folder to use php? I know that it is much easier with subdomain (blog.domain.com) but I'm interested in subfolder solution.
Subfolders shouldn't be an issue. IIS will check for an existing file/folder before it gets to MVC, so placing a /blog folder with your content in should work just fine. The thing to be wary of is if you want to use /blog in any of your routes, as these will fail because of the existing /blog folder, likely resulting in a 404.
If you are finding that it is not working for any reason, try registering an ignored route:
routes.IgnoreRoute("blog/{*pathInfo}");
That will stop MVC from processing any urls with blog/ in it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.