We have Drupal installed in /www/var/ And we have other system installed in /www/var/othersystem/
Drupal .htacess file is very complex (made not by me).
I wrote there (/var/www/.htaccess)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^othersystem - [L]
So to make Drupal engine not handle othersystem's pages
But when I am trying to access othersystem's admin at
/var/www/othersystem/admin/
Drupal again handles it and throws 404 error.
What line should add to /var/www/.htaccess to not handle /var/www/othersystem/admin/ link?
Addition: /var/www/othersystem/admin/.htaccess
AddType application/octet-stream csv
AuthName "Some CMS"
AuthType Basic
AuthUserFile /var/www/othersystem/admin/.passwd
require valid-user
There should be a line like:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
Which says to redirect pretty much everything to index.php. Just add another RewriteCond
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/othersystem/.*$
RewriteRule ^ index.php [L]
I believe (but not sure) that you could also put a new .htaccess file in the folder you want to ignore, with just:
RewriteEngine Off
Try adding this line on top of your /var/www/othersystem/.htaccess
to reset 404 handler being used by Drupal:
ErrorDocument 404 default