Hi there, I hope you can help.
I am trying to install 2 apps in subdirectories of my Drupal install. One program is a CRM and the other is a web analytics program. When I try to navigate to the subdirectories to install the programs, I get either a 404 message from Drupal, or Firefox telling me "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
I am running Drupal on a VPS with full root access, cpanel & WHM. Drupal is not installed in a sub directory, it's in the www root.
This is what I have tried so far:
Adding a .htaccess file to the subdirectories, and adding this to those .htaccess files:
DirectoryIndex index.php index.shtml index.html
Options +IndexesThat didn't work, so I tried editing my main Drupal .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine on
#
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L]
#I got these "fixes" from various postings, but I get the feeling they are geared towards older versions of Drupal with a less advance .htaccess. In Drupal 7, this should be automatic, right?
This page is where I got most of the information, but nothing on this page fixed my problem: http://drupal.org/node/30334
Well, anyways, I can't get it to work, and it's very frustrating. I hope someone out there can lend me a hand.
Thanks!
Comments
subscrib
subscrib ( I have same problem.)
same here
same here
Bad idea to mix drupal with other apps as there is no reason to
do it. Why do you want this?
The code is pretty basic, it should pass anything with folder1 or folder2 as is.
Suggest to improve it to one condition providing a pattern with or instead of two conditions. The first conditions already uses the pattern /folder1/, should be /folder1/|/folder2/. In addition it should use ^ to bind the pattern to the start. Currently, it allows folder# anywhere. Your filter should be to start with /folder#/
The rewrite rule just passes the request as is. It does declare it the last rule ([L]) to be processed. Which means it must be at the top of the .htaccess so other rules don't interfere.
As mentioned, bad idea to mix Drupal with other apps. Can be done, but recommend to keep them separate. No need to change the .htaccess provided by Drupal, other than making it work as you want. Suggest to use subdomains per app.