How to exclude a folder on a Drupal website so that Drupal does not recognize it on its own?

I am running xyz.org in Drupal.

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

"Page not found

What settings do I need to change so that drupal knows that /gallery not a drupal node?

+4
source share
1 answer

Take a look at your current .htaccess configuration. If you can have the following lines:

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

They contain most of the rewriting of the URL, which matters. The first three conditions say that all URLs will be rewritten with the exception of existing files, directories and a request for /favicon.ico Here you can add your favorite conditions. 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] 
+14
source

Source: https://habr.com/ru/post/1308098/


All Articles