I've read a lot of posts, including this one http://drupal.org/node/49089 about multisites.

I have a 4.6 site I'm happy with for now. It would take a lot of time to try and upgrade - I'll save that for later this summer.
I want to install 4.7 in a subdirectory - separate fresh install, separate db and all config files of it's own.

This would be easy, but 4.6 has taken over my entire domain. I even have other CMS's in subdir's now, and when I go those pages in those subdirs - drupal takes over and says "page not found", even though there is an index and pages there.

So I guess my question is - how do I turn 4.6 Drupal "off" for specific subdirs so I can run other stuff. Then I should be able to install 4.7 (or whatever I want) in the other subdirs.

thanks in advance for any help.

Comments

jt6919’s picture

I tried what it said in this thread: http://drupal.org/node/30334
but this won't work:
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} "/folder1/" [OR]
RewriteCond %{REQUEST_URI} "/folder2/"
RewriteRule (.*) $1 [L]

this (from the same thread) however does:
# stuff to let through (ignore)
RewriteCond %{REQUEST_URI} !survey/
RewriteRule (.*) $1 [L]

jt6919’s picture

I guess I still need help with this. Just checked my site again, and my domain (index) was hosed. The error log was full of errors from mod rewrite pages that weren't done properly. I commented out the lines (above) again, and everything works fine like before....

now, does anyone have any ideas or solutions that will work for the long term?

jrdassow’s picture

If you have access to your webserver's configuration files, you may try using virtual hosts to take care of this. It's what I usually do if I need to run multiple web apps under one domain name. Each virtual host would have it's own document root, so every app is essentially be running in it's own environment.

In Apache the directives look something like this:

<VirtualHost *:80>
  ServerName drupal46.example.com
  DocumentRoot /usr/local/www/drupal46
</VirtualHost>

<VirtualHost *:80>
  ServerName drupal47.example.com
  DocumentRoot /usr/local/www/drupal47
</VirtualHost>

You will have to change your domain's DNS entry so the subdomain name resolves, but you can use the same IP as your main domain. Apache can determine which VH to use based on the subdomain name.