Wordpress 和 Joomla 永久链接以及域重定向到 Zeus 上的特定子目录

发布于 2024-08-27 11:32:57 字数 252 浏览 5 评论 0原文

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

mysite.com 定向到 joomla 目录

mysite.com/blog 提供 wordpress。

我还想对两者使用搜索引擎优化友好的永久链接。

我正在使用 Zeus Linux 与 Joomla 1.5 和 wordpress 2.9.2 共享主机,并且在寻找合适的重写脚本时遇到了很大的麻烦。任何帮助将非常感激!谢谢。

Here's what I'm trying to do:
joomla in 1 subdirectory, wordpress in another.

mysite.com directs to the joomla directory

mysite.com/blog gives wordpress.

I would also like to use seo friendly permalinks for both.

I am using Zeus Linux shared hosting with Joomla 1.5 and wordpress 2.9.2, and having a great deal of trouble finding a suitable rewrite script. Any help would be very much appreciated! Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

愛放△進行李 2024-09-03 11:32:57

以下应该可以解决问题。它基于 示例 (pdf) 文档,我尚未对其进行测试。 Zeus 服务器的开发已于 2010 年停止。

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

The following should do the trick. It is based on the examples (pdf) document, and I haven’t tested it. The Zeus server development has stopped in 2010.

match URL into $ with ^blog/*$
if matched then
   set URL = blog/index.php
endif
骑趴 2024-09-03 11:32:57

您需要类似于以下内容的内容

#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

You would need something along the lines of the following

#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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文