diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index 630f54c0371cc4740f2fa1ee16fe901b04fc249c..1cf2967c9b60fb3fc6f9a39b59d8f92bad11c6e3 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -204,7 +204,7 @@ class apache2_plugin {
 			$new_parent_domain_id = intval($data["new"]["parent_domain_id"]);
 			
 			// If the parent_domain_id has been chenged, we will have to update the old site as well.
-			if($data["new"]["parent_domain_id"] != $data["old"]["parent_domain_id"]) {
+			if($this->action == 'update' && $data["new"]["parent_domain_id"] != $data["old"]["parent_domain_id"]) {
 				$tmp = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ".$old_parent_domain_id." AND active = 'y'");
 				$data["new"] = $tmp;
 				$data["old"] = $tmp;