Closed (outdated)
Project:
Domain
Version:
7.x-3.7
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2013 at 17:14 UTC
Updated:
2 May 2025 at 12:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
agentrickardMakes sense, if I were you I would be aliasing sites and using the techniques discussed here: https://drupal.org/node/1096988
See also #1303616: Allow alias registry for auto-creation.
As to this exact request, I presume you want to change the 'subdomain' value in the database, not the sitename?
Comment #2
Mark_L6n commentedThanks for the response! What I'd like to modify is the field at: Administration » Structure » Domains -> edit domain -> Domain , for every domain. Yes, this appears to be the 'subdomain' field in table 'domain'.
I looked at https://drupal.org/node/1096988 at the two options listed for solving this problem; I guess this drush approach would be a 3rd option. It'd be nice as it's an easy solution and doesn't require adding any code to run. [Edit]Also, more importantly, it allows for multiple locations, such as dev, staging, live and backup sites.[End edit]
In the 2nd option there:
Comment #3
agentrickard1. Yes
2. Yes
3. settings.php
Comment #4
agentrickardThe drush command would also be scriptable, as part of a deployment.
Comment #5
Anonymous (not verified) commentedI created patch adding to drush ability to change sitename and subdomain.
Using: drush domain-modify example.com new.example.com
Replace sitename and subdomain "example.com" to "new.example.com"
This is functional was needed for personal objectives. I think it's not bad to include in the module.
Comment #6
bluegeek9 commentedDrupal 7 in End of Life and no longer supported. We encourage you to upgrade to a supported version of Drupal. For more information, see https://www.drupal.org/upgrade.