Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 MVC 很陌生,但我无法弄清楚如何做到这一点
基本上我们有 Zend/MVC 应用程序控制一些页面,但 WordPress 处理其他页面
更新 Wordpress 将像 CMS 而不是博客一样工作。所以不会有任何 /blog 网址
如果您为 Zend 应用程序使用标准路由并为 Wordpress 使用漂亮的 URL,您可能必须在 .htacess 文件(或 Apache 配置)中控制它。
使用 mod_rewrite 将 URL(或 URL 模式)发送到 Zend 或 WP 是完成此任务的最简单方法。
例如,发送blog/以您的 Wordpress 安装开头的请求,任何其他请求都将由 Zend 应用程序的 index.php 文件处理。
blog/