这是我想要做的: joomla在一个子目录中,wordpress在另一个子目录中。
mysite.com指向joomla目录
mysite.com/blog提供wordpress。
我也想使用搜索引擎优化友好的永久链接这两个。
我在Joomla 1.5和wordpress 2.9.2上使用Zeus Linux共享主机,并且很难找到合适的重写脚本。任何帮助都将不胜感激!谢谢。
发布于 2010-04-05 07:57:00
下面的代码应该可以解决这个问题。它基于examples (pdf)文档,我还没有测试过它。Zeus服务器的开发在2010年就停止了。
match URL into $ with ^blog/*$
if matched then
set URL = blog/index.php
endif发布于 2014-02-01 00:48:51
您将需要以下内容
#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/$1https://stackoverflow.com/questions/2557724
复制相似问题