Changing directories
public
group: Social Networking Sites
jonbennett - Fri, 2008-08-15 13:03
Is this possible. I want to work on my site in http://mysite.com/drupal/ and then when I am ready to launch move it to the root directory.
Is this possible?
Sitewide tags: moving install directory


RE :: Changing Directories
It is completely possible to change directories for your project.
http://drupal.org/node/3366
Cheers,
Robert D. S.
actually a better idea...
I better idea is to make sure your site is not live by moving your NS records in your DNS or removing the A and @ records in your DNS.
Add the dns record to your local HOSTS file (Mac and PC) - build your site like normal - so the site is ONLY live to your local machine - when you are ready to go live, correct your DNS record and once propagation sets in, your good.
If you are building alot of dev sites, a much better idea is on a seperate server, build a nice in development page, whenever you start a new dev site, add that domain to that sites alias, then setup your dev site with the instructions above, only pointing your a record to the other server with the in development page.
Yes. . .
You just copy all the sub-folders and files from your development directory (drupal in your case) to the root directory.
Kyle Mathews
Two possible problems
1) when Drupal core is not the root, I have run into problems in .htaccess
2) you can introduce urls which reference the nested directory - drupal
I add a sub-domain and configure drupal core as the root. When I want to promote the "test" site, I can move the directories around without changing .htaccess and without changing root relative urls.
That still leaves absolute file path problems which can be avoided by swapping the apache directives instead of moving the directories.