By CasaDelGato on
I have a Drupal 6.xx site on my domain. (http://www.casadelgato.com)
I also have a subdirectory on that site for my home page - which is just some old html and links.
I'd LIKE to have that subdirectory be essentially a separate site. (different theme, completely different stuff.) I'm tired of maintaining the old html, and it needs lots of updates.
It needs a different theme, different menus, etc...
It's unclear to me what the best way to do this is.
Anything from a completely separate Drupal installation, to just using one of the subsite/context/sections modules.
Any suggestions?
Comments
Seems like a good candidate
Seems like a good candidate for using the built in multi-site support. Use the same Drupal installation and a different database.
Create another database, another site folder (you've already got sites/default ... now add one for your old homepage - sites/home).
Make a copy of the settings.php file from sites/default ... put it in your new site folder, change the db details.
Then visit http://example.com/home/install.php.
I must be missing some step somewhere...
So, I created a sites/home
I copied in the settings.php and modified the database entry to be the new database. (Yes, I did create a new database.)
I renamed my old example.com/home directory to be something else (just in case it would cause a conflict).
when I visit http://example.com/home/install.php I get a page not found from my example.com drupal installation.
... later...
Looking at the server logs, it appears that the install.php is expecting to find an index.php in the example.com/home directory.
Better instructions, still doesn't work
Ok, I found and followed the instructions at: http://drupal.org/getting-started/6/install/multi-site to create a subdirectory multi-site.
I also had to modify my .htaccess file as specified at: http://drupal.org/node/239583#comment-786932
This almost works.
If I go to http://www.example.com/subdir - it gives a bunch of error messages talking about tables not existing, and giving the name of the new database as part of each table name.
If I go to http://www.example.com/subdir/install.php - it tells me that my site already exists and is using my root site database.
I also found some info on the .htaccess changes at: http://drupal.org/node/15365
my .htaccess changes look like this:
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/Home/(.*)$
RewriteRule ^(.*)$ /Home/index.php?q=$1 [L,QSA]
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Any suggestions?
How to create sub directory drupal site step-by-step guide
I have written guild that should help you setup sub directory site at: http://www.drupalbank.com/content/how-create-sub-directory-drupal-site-s...