<i id='GMRx7'><tr id='GMRx7'><dt id='GMRx7'><q id='GMRx7'><span id='GMRx7'><b id='GMRx7'><form id='GMRx7'><ins id='GMRx7'></ins><ul id='GMRx7'></ul><sub id='GMRx7'></sub></form><legend id='GMRx7'></legend><bdo id='GMRx7'><pre id='GMRx7'><center id='GMRx7'></center></pre></bdo></b><th id='GMRx7'></th></span></q></dt></tr></i><div id='GMRx7'><tfoot id='GMRx7'></tfoot><dl id='GMRx7'><fieldset id='GMRx7'></fieldset></dl></div>
  • <small id='GMRx7'></small><noframes id='GMRx7'>

    1. <tfoot id='GMRx7'></tfoot>
    2. <legend id='GMRx7'><style id='GMRx7'><dir id='GMRx7'><q id='GMRx7'></q></dir></style></legend>

          <bdo id='GMRx7'></bdo><ul id='GMRx7'></ul>

      1. Zend 框架和 Wordpress 集成

        Zend Framework and Wordpress Integration(Zend 框架和 Wordpress 集成)
          1. <tfoot id='Jdsff'></tfoot>
              <tbody id='Jdsff'></tbody>

            • <bdo id='Jdsff'></bdo><ul id='Jdsff'></ul>
              <legend id='Jdsff'><style id='Jdsff'><dir id='Jdsff'><q id='Jdsff'></q></dir></style></legend>

              <i id='Jdsff'><tr id='Jdsff'><dt id='Jdsff'><q id='Jdsff'><span id='Jdsff'><b id='Jdsff'><form id='Jdsff'><ins id='Jdsff'></ins><ul id='Jdsff'></ul><sub id='Jdsff'></sub></form><legend id='Jdsff'></legend><bdo id='Jdsff'><pre id='Jdsff'><center id='Jdsff'></center></pre></bdo></b><th id='Jdsff'></th></span></q></dt></tr></i><div id='Jdsff'><tfoot id='Jdsff'></tfoot><dl id='Jdsff'><fieldset id='Jdsff'></fieldset></dl></div>

              <small id='Jdsff'></small><noframes id='Jdsff'>

                  本文介绍了Zend 框架和 Wordpress 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我们在 ourdomain.com 上有一个现有的 Zend Framework 站点,在 blog.ourdomain.com 上有一个 wordpress 博客

                  We have an existing Zend Framework site hosted at ourdomain.com and a wordpress blog at blog.ourdomain.com

                  我们想将博客迁移到位于 ourdomain.com/blog 的站点中 - 但我似乎已经用谷歌搜索到了地球的尽头,无法找到方法.我尝试了各种 .htaccess 的东西,设置了一个博客控制器并包括一些 wordpress 文件等 - 但无济于事.

                  We want to migrate the blog into the site at ourdomain.com/blog - but I seemed to have googled to the end of the earth and cannot find out how. I have tried various .htaccess stuff, setting up a blog controller and including some wordpress files, etc - but to no avail.

                  有人有什么想法吗?

                  虚拟主机设置:

                  ServerAdmin webmaster@dummy-host.example.com
                  DocumentRoot "/Users/bradyeager/Sites/TWPZend/public"
                  ServerName twps
                  ErrorLog "logs/twps-error-log"
                  CustomLog "logs/twps-access_log" common
                  

                  期权索引 FollowSymLinks

                  Options Indexes FollowSymLinks

                  AllowOverride All
                  
                  Order allow,deny
                  Allow from all
                  

                  推荐答案

                  最有效和最简单的方法是通过修改 .htaccess 文件而不将任何以 /blog 开头的内容发送到ZF 应用程序——只需将其传递给 Wordpress.Wordpress 必须安装在您的文档根目录中,当然,要使其正常工作,这与您通常的安装方式完全相同.

                  The most efficient and easiest way to accomplish this by modifying your .htaccess file to NOT send anything that starts with /blog to the ZF app -- just pass it through to Wordpress. Wordpress would have to be installed inside your document root, of course, for this to work, exactly how you would normally install it.

                  示例:

                  RewriteCond %{REQUEST_FILENAME} -s [OR]
                  RewriteCond %{REQUEST_FILENAME} -l [OR]
                  RewriteCond %{REQUEST_FILENAME} -d
                  RewriteRule ^.*$ - [NC,L]
                  
                  RewriteRule ^blog - [NC,L]
                  
                  RewriteRule ^.*$ index.php [NC,L]
                  

                  关于在您的 ZF 应用程序中创建自定义控制器、动作和路由,然后通过您的应用程序传递到 Wordpress 的所有这些废话绝对是荒谬的.您会执行应用程序引擎的完整调度周期,只是为了转发到另一个应用程序?

                  All this nonsense about creating custom controllers, actions and routes in your ZF app, then passing off to Wordpress via your app is absolutely ridiculous. You'd be executing a full dispatch cycle of your application's engine, just to forward off to another app?

                  这篇关于Zend 框架和 Wordpress 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Zend_Controller_Router_Exception: quot;xyzquot; is not specified(Zend_Controller_Router_Exception:“xyz;未指定)
                  Zend_Db_Table subquery(Zend_Db_Table 子查询)
                  pcntl_fork and the MySQL connection is gone(pcntl_fork 和 MySQL 连接消失了)
                  Change layout in the controller of Zend Framework 2.0(在 Zend Framework 2.0 的控制器中更改布局)
                  Zend Mail Gmail SMTP(Zend 邮件 Gmail SMTP)
                  Zend_Form: how to check 2 fields are identical(Zend_Form:如何检查 2 个字段是否相同)
                  <legend id='3uacr'><style id='3uacr'><dir id='3uacr'><q id='3uacr'></q></dir></style></legend>

                      <tbody id='3uacr'></tbody>
                  1. <i id='3uacr'><tr id='3uacr'><dt id='3uacr'><q id='3uacr'><span id='3uacr'><b id='3uacr'><form id='3uacr'><ins id='3uacr'></ins><ul id='3uacr'></ul><sub id='3uacr'></sub></form><legend id='3uacr'></legend><bdo id='3uacr'><pre id='3uacr'><center id='3uacr'></center></pre></bdo></b><th id='3uacr'></th></span></q></dt></tr></i><div id='3uacr'><tfoot id='3uacr'></tfoot><dl id='3uacr'><fieldset id='3uacr'></fieldset></dl></div>
                      <bdo id='3uacr'></bdo><ul id='3uacr'></ul>

                        <tfoot id='3uacr'></tfoot>

                          <small id='3uacr'></small><noframes id='3uacr'>