By corey@coreydickson.com on
I currently have a Drupal 6 Multi-site configuration.
The directory structure is set up as shown below
/sites/test1.mysite.com
/sites/test1.mysite.com
I am currently accessing the sites using the urls test1.mysite.com & test2.mysite.com
I would now like to point a domain(mynewdomain.com) to one of my dev sites. Is it possible to change the directory "test1.mysite.com" to "mynewdomain.com"? I have not been successful at making this happen. Any help would be appreciated.
Comments
...
What is your current directory structure?
Did you change:
/sites/test1.mysite.com
/sites/test2.mysite.com ???????
To this:
/sites/mynewdomain.com
/sites/test2.mysite.com
and did you change the settings.php file in sites/mynewdomain.com ??
Did you change the .htaccess file?
Did you clear the database cache files (I'm not sure if this is necessary)??
Did you register mynewdomain.com with your servers' nameservers, and has it has the DNS been resolved yet?
What happens when you go to www.mynewdomain.com?
test1.mysite and test2.mysite are subdomains of mysite.com and not seperate domains, so are you sure you have Drupal set up for a multisite install?
Yes I did change
Yes I did change
/sites/test1.mysite.com
/sites/test2.mysite.com
To this:
/sites/mynewdomain.com
/sites/test2.mysite.com
I did not update the settings file - what should be changed there? Database info is correct.
All modules are in sites/all/modules so I should be good there.
I did not update the .htaccess - is this necessary?
I did update admin/settings/file-system - file system path to be /sites/files/mynewdomain.com - now it is finding my style sheets which is good
The only issue now seems to be images which are not called from the style sheet and still have "/sites/test1.mysite.com..." in the path. Is there any way to resolve this issue other than manually changing the image paths?
Thanks for your response!
A symlink is the easiest way
A symlink is the easiest way of doing that - you can have the same site served from any number of domains.
But renaming it will be a bad idea if you have any mods in sites/sitename/modules
And also bad if your files are in sites/sitename/files.
Yeah, symlinks are the way to go - everything keeps working like that.
Or you can copy just
sites/sitename/settings.phptosites/sitename2/settings.phpand things will be fine, just don't delete the original ... and you end up with a sorta strange setup..dan. is the New Zealand Drupal Developer working on Government Web Standards
Thanks, yes I tried copying
Thanks, yes I tried copying the settings to a new directory and tested and it does work correctly although I agree that it is a strange setup. I will probably use this scenario as a last resort as I'm trying to avoid the multiple directories for the same site
Symlinks..hmm not familiar but I will do a search for that and see what I find. Any direction would be helpful. I guess that my main goal is to have my directory named..mynewdomain.com to avoid any confusion for people who update the sites in the future.
Thanks for your help