Php pyrocms安装在一个子目录中,wordpress安装在根目录中

Php pyrocms安装在一个子目录中,wordpress安装在根目录中,php,wordpress,.htaccess,codeigniter,pyro,Php,Wordpress,.htaccess,Codeigniter,Pyro,我已经做了一段时间了,所以我想我应该寻求帮助。下面是根目录中wordpress的.htaccess文件: AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond $1 !^(community)(/|$) RewriteCond %{REQUEST

我已经做了一段时间了,所以我想我应该寻求帮助。下面是根目录中wordpress的.htaccess文件:

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

# BEGIN WordPress


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond $1 !^(community)(/|$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
我基本上要求它忽略社区目录,在那里安装pyrocms。以下是社区子目录中的.htaccess文件:

<IfModule mod_rewrite.c>

 Options +FollowSymLinks
 RewriteEngine on

 # NOTICE: If you get a 404 play with combinations of the following commented out lines
 #AllowOverride All
 RewriteBase /community

 # Restrict your site to only one domain
 #RewriteCond %{HTTP_HOST} !^example\.com$
 #RewriteRule ^(.*)$ http://example.com/$1 [L]

 # Keep people out of codeigniter directory and Git/Mercurial data
 RedirectMatch 403 ^/(system\/pyrocms\/cache|system\/codeigniter|\.git|\.hg).*$

 # Send request via index.php (again, not if its a real file or folder)
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d

 <IfModule mod_php5.c>
  RewriteRule ^(.*)$ index.php/$1 [L]
 </IfModule>

 <IfModule !mod_php5.c>
  RewriteRule ^(.*)$ index.php?/$1 [L]
 </IfModule>

</IfModule>
当我尝试访问/community/installer时,我得到了一个404和CI 404

此外,如果我尝试uri_proticol的不同设置,我会得到奇怪的结果。数据库连接错误等。我已经能够得到安装程序的主页面显示,但没有步骤过去


有什么想法吗?未找到任何文档,用于为子目录安装正确配置pyrocms。

还原WordPress.htaccess删除它,然后从面板中的永久链接选项重新生成它

现在,将您的/community/.htaccess更改为

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /community
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>

希望能有帮助。

你他妈的干什么


我可能已经做出了决定,但我拒绝支持这样的精神上的东西-

是的,我知道。事实上,我发现这个问题根本与.htaccess无关。似乎与godaddy共享主机上的该客户端有关。