<legend id='Zc39g'><style id='Zc39g'><dir id='Zc39g'><q id='Zc39g'></q></dir></style></legend>

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

      1. <small id='Zc39g'></small><noframes id='Zc39g'>

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

        Zend 框架和 Wordpress 集成

        时间:2023-10-02

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

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

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

        • <tfoot id='h8B6h'></tfoot>

                <tbody id='h8B6h'></tbody>
              1. <legend id='h8B6h'><style id='h8B6h'><dir id='h8B6h'><q id='h8B6h'></q></dir></style></legend>
                  本文介绍了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 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 Zend Framework 创建 cronjob 下一篇:PHP 会话修改缓存控制标头?

                  相关文章

                  最新文章

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

                    • <bdo id='CR0vf'></bdo><ul id='CR0vf'></ul>

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