如何使phpmyadmin与kohana站点一起工作?(.htaccess)

如何使phpmyadmin与kohana站点一起工作?(.htaccess),php,.htaccess,phpmyadmin,kohana,Php,.htaccess,Phpmyadmin,Kohana,今天我试图将phpmyadmin上传到kohana站点的一个文件夹中,但结果是,我得到的不是phpmyadmin,而是一个空页面。因此,我认为这是在站点根目录中重写.htaccess中的规则的问题 .htaccess文件包含以下行: RewriteEngine On RewriteBase / <Files .*> Order Deny,Allow Deny From All </Files> RewriteRule ^(?:application|mod

今天我试图将phpmyadmin上传到kohana站点的一个文件夹中,但结果是,我得到的不是phpmyadmin,而是一个空页面。因此,我认为这是在站点根目录中重写.htaccess中的规则的问题

.htaccess文件包含以下行:

RewriteEngine On
RewriteBase /
<Files .*>
    Order Deny,Allow
    Deny From All
</Files>
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
重新编写引擎打开
重写基/
命令拒绝,允许
全盘否定
重写规则^(?:应用程序|模块|系统)\b.*index.php/$0[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
#将所有其他URL重写为index.php/URL
重写规则。*index.php/$0[PT]
我的phpmyadmin index.php文件位于phpmyadmin/目录中,但据我所知,每个请求都被重定向到根目录中的index.php。如何使phpmyadmin在不破坏kohana路由的情况下工作


谢谢你的帮助

只需在最后一个
重写规则
之前添加另一个
RewriteCond

RewriteCond %{REQUEST_URI} !^/phpmyadmin
或者更明确地说,您可以在现有的
RewriteCond
s之前添加另一条规则:

RewriteCond %{REQUEST_URI} ^/phpmyadmin
RewriteRule ^.*$ - [NC,L]