[英]I have an existing asp.net mvc site (on iis 7), can I add wordpress on a /blog subdirectory?
I have an existing site that is using asp.net mvc 2.0 and I want to add wordpress in a /blog subdirectory. 我有一个使用asp.net mvc 2.0的现有网站,我想在/ blog子目录中添加wordpress。
Is this possible? 这可能吗? How would I go around to doing this? 我该怎么做呢?
The site has a wildcard SSL certificate, not sure if that has any effect on the binding for the subdirectory? 该站点具有通配符SSL证书,不确定它是否对子目录的绑定有任何影响?
Also, are there any security issues I should be worried about (besides for keeping wordpress up-to-date?) 另外,我是否应该担心任何安全问题(除了保持wordpress最新?)
Since Wordpress runs on php, you probably need to setup the /blog
subdirectory as the root of a separate php application. 由于Wordpress在php上运行,您可能需要将/blog
子目录设置为单独的php应用程序的根目录。 You'd do this in IIS, separate from all settings controlling your MVC application. 您可以在IIS中执行此操作,与控制MVC应用程序的所有设置分开。
In the MVC app, you need to ignore the blog from the routes. 在MVC应用程序中,您需要忽略路线中的博客。 Add the following at the top of your route registration: 在路线注册的顶部添加以下内容:
routes.IgnoreRoute("blog/{*pathInfo}");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.