Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Minty on
Converting from a live static site to Drupal must be a pretty common requirement, but doesn't seem well documented.
This is not a question about styling, layout etc, but about the workflow where the old site must continue working during the development of the new site.
Can anyone explain the steps needed to keep an existing site live while developing the Drupal version? What is 'best practice' in this situation?
All suggestions and comments appreciated!
Comments
Build a test site
Build your drupal site in a subdomain e.g. drupal/yoursite.com.
Then when it is fantastic and you know what you are doing,
copy the files across and voila it is now live.
gpdinoz
"Everything should be made as simple as possible, but not simpler." - Albert Einstein
Regards
Geoff
Which files to copy?
OK many thanks for the help.
This is how far I get
Now everything is working, is it correct to:
Copy all the Drupal files from www.test.example.com to www.example.com. May need to amend the baseurl in settings.php, but effectively, both sites are identical using the same database.
Are there any issues for the site navigation, clean urls etc?
It Depends
If you have a well structured static site (that is the html is well structured), you should be able to write a script to search through your site (or a copy of it), pull out the meat of the content with perhaps some regex, and insert it as a node into the drupal database.
Obviously, the devil is in the details
pull out the meat
Thanks also for this.
This may be helpful for others, but not too much of an issue in my case as generally it will be static sites I have already built where I have access to the original content.