【问题标题】:Wordpress and Joomla Permalinks plus domain redirect to specific subdirectory on ZeusWordpress 和 Joomla 永久链接以及域重定向到 Zeus 上的特定子目录
【发布时间】:2014-02-01 01:04:07
【问题描述】:

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

mysite.com 指向 joomla 目录

mysite.com/blog 提供 wordpress。

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

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

【问题讨论】:

    标签: wordpress rewrite joomla1.5 permalinks zeus


    【解决方案1】:

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

    match URL into $ with ^blog/*$
    if matched then
       set URL = blog/index.php
    endif
    

    【讨论】:

    • OP 明确指出他使用的是 Zeus - 而不是 Apache。 .htaccess没用,他需要一个rewrite.script
    【解决方案2】:

    你需要一些类似以下的东西

    #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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-04
      • 2013-08-14
      • 2016-02-11
      • 2017-12-20
      • 1970-01-01
      • 2015-11-08
      • 1970-01-01
      相关资源
      最近更新 更多