简体   繁体   English

我有一个现有的asp.net mvc网站(在iis 7上),我可以在/ blog子目录中添加wordpress吗?

[英]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.

相关问题 Asp.Net MVC Core 2网站,子目录中有Wordpress - Asp.Net MVC Core 2 web site with Wordpress in subdirectory 我可以将 ASP.NET Core MVC 添加到现有的 ASP.NET Web Z645024253191A381C36Z83CAE8 - Can I add ASP.NET Core MVC to existing ASP.NET Web Forms Application 我如何在现有的asp.net-mvc网站上添加新路由而无需进行大量重写? - How can I add a new route on my existing asp.net-mvc site without a large rewrite? 如何让SSIS作业与ASP.NET MVC网站通信? - How can I have an SSIS job communicate with my ASP.NET MVC site? 我可以在MVC站点下的虚拟目录中使用传统的ASP.NET Web应用程序吗? - Can I have traditional ASP.NET Web Applications in Virtual Directories under MVC Site? 如何将 AdSense 代码添加到我的 ASP.NET MVC 网站? - How can I add AdSense code to my ASP.NET MVC site? 我可以将预先存在的 Javascript 代码添加到 ASP.NET MVC C# 应用程序吗 - Can I add pre-existing Javascript code to an ASP.NET MVC C# application ASP.NET MVC我可以有一个名为PropertiesController的控制器吗? - ASP.NET MVC Can I have a controller called PropertiesController? 我们可以在 WordPress 站点上有一个 ASP.NET Web 服务吗? - Can we have a ASP.NET Webservice on WordPress Site? 我无法在 ASP.NET Core MVC 中添加视图 - I can't add view in ASP.NET Core MVC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM