首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Wordpress和Joomla永久链接加上域重定向到Zeus上的特定子目录

问Wordpress和Joomla永久链接加上域重定向到Zeus上的特定子目录
EN

Stack Overflow用户
提问于 2010-04-01 10:04:40
回答 2查看 922关注 0票数 0

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

mysite.com指向joomla目录

mysite.com/blog提供wordpress。

我也想使用搜索引擎优化友好的永久链接这两个。

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

EN

回答 2

Stack Overflow用户

发布于 2010-04-05 07:57:00

下面的代码应该可以解决这个问题。它基于examples (pdf)文档,我还没有测试过它。Zeus服务器的开发在2010年就停止了。

代码语言:javascript
复制
match URL into $ with ^blog/*$
if matched then
   set URL = blog/index.php
endif
票数 1
EN

Stack Overflow用户

发布于 2014-02-01 00:48:51

您将需要以下内容

代码语言:javascript
复制
#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
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2557724

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档