0

这就是我想要做的事情:joomla 在 1 个子目录中,wordpress 在另一个子目录中。

mysite.com 指向 joomla 目录

mysite.com/blog 提供 wordpress。

我还想对两者都使用 seo 友好的永久链接。

我正在使用带有 Joomla 1.5 和 wordpress 2.9.2 的 Zeus Linux 共享主机,并且很难找到合适的重写脚本。任何帮助将不胜感激!谢谢你。

4

2 回答 2

1

以下应该可以解决问题。它基于示例(pdf)文档,我还没有测试过。Zeus 服务器的开发于 2010 年停止。

match URL into $ with ^blog/*$
if matched then
   set URL = blog/index.php
endif
于 2010-04-04T23:57:00.393 回答
0

您将需要以下内容

#Joomla
match URL into $ with (/content/|/component/)              
if matched then set URL = /index.php
#Wordpress
map path into SCRATCH:path from %{URL}  
look for file at %{SCRATCH:path}  
if exists then goto END  
look for dir at %{SCRATCH:path}  
if exists then goto END  
# FIX FOR LOGIN
match URL into $ with ^/blog/wp-.*$  
if matched then goto END  
# FIX FOR SEARCH
match URL into $ with ^/blog/(.*)  
set URL = /blog/index.php/$1
于 2014-01-31T16:48:50.917 回答