Zend框架和Word preSS集成(Zend Framework and Wordpress Integration)

   IT问题网   2019-04-01 00:00:00

问 题

我们必须在主办ourdomain.com现有的zend框架的网站,一个字press的博客blog.ourdomain.com

我们想在博客进入网站迁移的ourdomain.com/blog- 但我似乎已经google上搜索到了地球的尽头,不能找出如何。我曾尝试过各种的.htaccess的东西,建立一个博客控制器,还有一些文字press文件等 - 但无济于事。

有没有人有什么想法?

虚拟主机设置

 的serveradmin webmaster@dummy-host.example.com
的documentroot"/用户/ bradyeager /网站/ twpzend /公"
服务器名twps
错误日志"记录/ twps-错误日志"
的customlog"日志/ twps,访问日志"共同
 

选项索引了followsymlinks

 的allowoverride所有

订购允许,拒绝
所有允许
 

解决方案

最有效,最简单的方法来修改你的.htaccess文件,不发送任何与 /博客到zf的应用程序 - 只是通过它传递到word press。字press将不得不您的文档根目录里面装的,当然,这个工作,你到底怎么通常会安装它。

一个例子:

 的rewritecond%{} request_filename -s [or]
的rewritecond%{} request_filename -l [or]
的rewritecond%{} request_filename -d
。重写规则^ * $-[nc,l]

重写规则^博客 -[nc,l]

重写规则^ * $的index.php [nc,l]
 

这一切废话关于您的zf的应用程序创建自定义的控制器,操作和路线,然后通过你的应用程序假冒为word press是绝对荒谬的。你会在执行应用程序引擎的一个完整的调度周期,就转发到另一应用程序?

标签:框架以及集成



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

如何删除"网络/ app_dev.php"从Symfony2的网址?(How to remove "web/app_dev.php" from Symfony2 URLs)

problem i just created my first symfony2 project. but the ...

通过301重定向404误差的.htaccess的搜索引擎优化等(Redirecting 404 error with .htaccess via 301 for SEO etc)

problem i couldn't find a straight answer to my question ...

而不进行任何验证的IP地址(Allow IP address without authentication)

problem i have set up a site that is currently work in pr ...

HTTP的当量=英寸×UA兼容"内容=IE =边缘,镀铬= 1......在.htaccess把这个?(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" ... Putting this in .htaccess)

problem i downloaded html5 boilerplate and it wouldnt val ...

如何使用mod_headers中和mod_expires缓存(how to use mod_headers and mod_expires to cache)

problem i want to cache images and other files on my site ...

如何从一个子目录中删除的.htaccess密码保护(How to remove .htaccess password protection from a subdirectory)

problem i have password protected my entire website using ...

请.git目录网站无法访问(Make .git directory web inaccessible)

problem i have a website that i use github (closed source ...

重写URL以htaccess的(rewrite url with htaccess)

problem first of all i am a beginner so please answer in ...

重写QUOT&; pretty的网址"?(Rewrite to "pretty URL")

problem this is an example of what i am trying to achieve ...

需要mod_rewrite的URL信息(mod_rewrite URL info required)

problem i am new to this mod_rewrite. i have been success ...

的.htaccess,迫使斜线和www(.htaccess, forcing a slash and www)

problem can someone please help me to force my website to ...

简单的301重定向在.htaccess与查询字符串不以重定向指令工作(Simple 301 redirect in .htaccess with query string does not work with Redirect directive)

problem i am trying to redirect a single url in a .htacce ...

如何将文本转换使用的.htaccess为小写的网址(How to convert text to lowercase URLs using .htaccess)

problem i want to set up 301 redirects in my .htaccess fi ...

"双向"改写("Two Way" Rewrite)

problem so, i'm trying to accomplish this: we have a url ...

与字preSS除非使用URL重写不工作[R](Url rewriting not working with wordpress unless using [R])

problem i have a wordpress installation on my website on ...

通过htaccess的重定向所有的HTTP和HTTPS非www网址https://www.xyz.com(Redirect all http AND https non-www URLS to https://www.xyz.com via htaccess)

problem for reasons much too long and complex to get into ...

重定向的* .htm为* .PHP(Redirect *.htm to *.php)

problem i am trying find out how to redirect all traffic ...

HTTPS重定向到非www和http到www(Redirect https to non-www and http to www)

problem i searched and found hundreds of related cases, b ...

如何从URL使用htaccess的本地主机和主机服务器删除“/公众”?(how can remove '/public' from url using htaccess for localhost and host server)

problem i'm using zend framework 2 on xampp. i created .h ...

的.htaccess重写规则到路径不改变网址(.htaccess RewriteRule to path without changing URL)

problem so, i've this problem: base website located at ...