如何排除在Drupal站点的文件夹,这样Drupal没有认识到它自己的? [英] How to exclude a folder on Drupal site so that Drupal does not recognise it its own?

查看:281
本文介绍了如何排除在Drupal站点的文件夹,这样Drupal没有认识到它自己的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行在Drupal网站 xyz.org

I am running a site xyz.org in Drupal.

现在我想安装一些其他的模块,如 PHPBB 论坛和铜矿画廊。当我安装这些,并尝试访问该链接xyz.org/gallery,它给我的Drupal的错误。

Now I want to install some other modules such as PHPBB forum and Coppermine gallery. When I install these, and try to access the link xyz.org/gallery, it gives me drupal error.

找不到网页

,我需要改变让Drupal的知道, /库不是一个Drupal节点?哪些设置

What settings I need to change in order to let drupal know that /gallery is not a drupal node?

推荐答案

看看你目前的.htaccess配置。如果可能具有以下行:

Take a look at your current .htaccess config. If might have the following lines:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

那些包含大部分的URL重写的事项。前三个条件说,所有的网址将除了现有的文件,目录和/favicon.ico的请求被改写 你可以有添加自己喜欢的条件。例如,为了避免重写窗体/画廊的网址/.*:

Those contain most of the URL rewriting that matters. The first three conditions say that all URLs will be rewritten except for existing files, directories and a request for /favicon.ico You can add your own favourite conditions there. For example, to avoid rewriting for urls of the form /gallery/.*:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/gallery/.*$
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

这篇关于如何排除在Drupal站点的文件夹,这样Drupal没有认识到它自己的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆