Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress和Joomla Permalinks plus域重定向到Zeus上的特定子目录_Wordpress_Rewrite_Joomla1.5_Permalinks_Zeus - Fatal编程技术网

Wordpress和Joomla Permalinks plus域重定向到Zeus上的特定子目录

Wordpress和Joomla Permalinks plus域重定向到Zeus上的特定子目录,wordpress,rewrite,joomla1.5,permalinks,zeus,Wordpress,Rewrite,Joomla1.5,Permalinks,Zeus,以下是我想做的: joomla在1个子目录中,wordpress在另一个子目录中 mysite.com指向joomla目录 mysite.com/blog提供wordpress 我还想使用seo友好的永久链接 我正在使用宙斯Linux与Joomla 1.5和wordpress 2.9.2的共享主机,在寻找合适的重写脚本时遇到了很多困难。任何帮助都将不胜感激!谢谢。下面的内容应该可以解决这个问题。它基于文档,我还没有测试它。宙斯服务器的开发已于2010年停止 将URL与^blog匹配成$/*$ 如

以下是我想做的: joomla在1个子目录中,wordpress在另一个子目录中

mysite.com指向joomla目录

mysite.com/blog提供wordpress

我还想使用seo友好的永久链接


我正在使用宙斯Linux与Joomla 1.5和wordpress 2.9.2的共享主机,在寻找合适的重写脚本时遇到了很多困难。任何帮助都将不胜感激!谢谢。

下面的内容应该可以解决这个问题。它基于文档,我还没有测试它。宙斯服务器的开发已于2010年停止

将URL与^blog匹配成$/*$
如果匹配,则
设置URL=blog/index.php
恩迪夫

您需要符合以下要求的东西

#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

OP明确表示他使用的是宙斯,而不是阿帕奇。htaccess没用,他需要重写脚本