Starting another CMS system under the drupal folder

I am new to drupal ...

I finished my first drupal site. then the client wanted to run their old CRM under the new drupal website, they uploaded the CRM folder to the drupal folder, and when I try to contact the CRM administrator, as shown below, it redirects the drupal 404 page (which is the search page).

www.blablabla.com/crm/admin

The error message from drupal is below:

The page you requested does not exist. For your convenience, a search was performed using a 500 SHTML query.

Is there a way to make drupal ignore any folder under its folder? something through .htaccess, or I don't know: /

Valuing helps! thanks a lot!

+4
source share
3 answers

I would suggest just binding the old cms from inside drupal. And save the old cms folders outside the drupal folders. Your old cms also probably do not link to links correctly (expecting http: // oldcmslink , but inside drupal it will be http: // drupal? Q = something ).

+4
source

Drupal uses these lines in the .htaccess file.

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

To use the subdirectory below, you need to either add a RewriteRule before using the [L] attribute, or add your subdirectory to the RewriteCond list here, for example:

 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/crm/ # Ignore Drupal Redirects for our CRM. RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] 
+2
source

You will need to make the mod_rewrite rule in your .htaccess file. Drupal routes (almost) all of its requests to index.php, which then sends requests to the Drupal menu router. Therefore, your CMS will never work unless you create a rewrite rule.

But I would take controlfreak123 advice if you can, and move your old CMS site to a different address. You will have to maintain your own version of the Drupal htaccess file and do this every time you upgrade. In addition, you may encounter names later if you add new modules, etc.

0
source

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


All Articles