Ticket #1998 (closed enhancement: fixed)

Opened 2 years ago

Last modified 16 months ago

Add support for subdomain redirect

Reported by: JCD Owned by: scitech
Priority: patch Milestone: ispCP ω 1.0.7
Component: Frontend (GUI) Version: ispCP ω 1.0.2
Severity: Easy Keywords:
Cc:

Description

I've added support for sub domain URL redirects. Now it is possible to add an URL redirect to a sub domain. Afterwards the redirect can be edited. It was tested against current trunk.

Two database fields were added, so an update is needed:

ALTER TABLE `subdomain` ADD `subdomain_url_forward` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `subdomain_mount`;
ALTER TABLE `subdomain_alias` ADD `subdomain_alias_url_forward` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `subdomain_alias_mount`;

I've attached my patch files.

Attachments

engine.patch Download (14.3 KB) - added by JCD <frasch@…> 2 years ago.
Patch for subdomain engine files
php.patch Download (21.2 KB) - added by JCD <frasch@…> 2 years ago.
Patch for client subdomain manage files
templates.patch Download (12.3 KB) - added by JCD <frasch@…> 2 years ago.
Patch for gui template files
config_parts.patch Download (1.1 KB) - added by JCD <frasch@…> 2 years ago.
Patch for config template parts
engine.2.patch Download (12.3 KB) - added by JCD 2 years ago.
Updated patch for subdomain engine files
php.2.patch Download (22.5 KB) - added by JCD 2 years ago.
Updated patch for client subdomain manage files
templates.2.patch Download (14.9 KB) - added by JCD 2 years ago.
Updated patch for gui template files
config_parts.2.patch Download (1.0 KB) - added by JCD 2 years ago.
Updated patch for apache template parts
engine.3.patch Download (12.3 KB) - added by JCD 22 months ago.
Fixed few coding typos
templates.3.patch Download (14.9 KB) - added by JCD 22 months ago.
Fixed few coding typos

Change History

Changed 2 years ago by JCD <frasch@…>

Patch for subdomain engine files

Changed 2 years ago by JCD <frasch@…>

Patch for client subdomain manage files

Changed 2 years ago by JCD <frasch@…>

Patch for gui template files

Changed 2 years ago by JCD <frasch@…>

Patch for config template parts

comment:1 Changed 2 years ago by benedikt

  • Milestone changed from Working to ispCP ω 1.1.0

comment:2 Changed 2 years ago by nuxwin

  • Owner set to nuxwin
  • Status changed from new to assigned

comment:3 Changed 2 years ago by benedikt

duplicate of #1832; keep this, because here is a patch attached.

Changed 2 years ago by JCD

Updated patch for subdomain engine files

Changed 2 years ago by JCD

Updated patch for client subdomain manage files

Changed 2 years ago by JCD

Updated patch for gui template files

Changed 2 years ago by JCD

Updated patch for apache template parts

comment:4 follow-up: ↓ 5 Changed 2 years ago by JCD

I've updated my patches. Now they are working with 1.0.4.

Note: You will have to add the new function validates_uri to gui/include/input_checks.php. See Ticket #2269 for further details. Currently this function allows URIs up to 255 characters (the maximum allowed length should be discussed), so the SQL queries mentioned above have to be

ALTER TABLE `subdomain` ADD `subdomain_url_forward` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `subdomain_mount`;
ALTER TABLE `subdomain_alias` ADD `subdomain_alias_url_forward` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `subdomain_alias_mount`;

comment:5 in reply to: ↑ 4 ; follow-up: ↓ 6 Changed 23 months ago by benedikt

  • Status changed from assigned to closed
  • Resolution set to duplicate
  • Milestone changed from ispCP ω 1.1.0 to ispCP ω 1.0.6

In regard to Comment 4 this seems to be a duplicate to #2269.

comment:6 in reply to: ↑ 5 Changed 23 months ago by JCD

Replying to benedikt:

In regard to Comment 4 this seems to be a duplicate to #2269.

No, that's no duplicate. This patch lets you create redirects for SUBDOMAINS. It is a new feature. #2269 is only the prerequisite for this patch to work! Please reopen.

comment:7 Changed 23 months ago by benedikt

  • Status changed from closed to reopened
  • Resolution duplicate deleted

reopened. See Comment 6

comment:8 Changed 22 months ago by benedikt

  • Priority changed from normal to patch
  • Summary changed from Added support for subdomain redirect to Add support for subdomain redirect

Changed 22 months ago by JCD

Fixed few coding typos

Changed 22 months ago by JCD

Fixed few coding typos

comment:9 Changed 21 months ago by nuxwin

  • Status changed from reopened to new

comment:10 Changed 21 months ago by nuxwin

  • Status changed from new to assigned

comment:11 Changed 18 months ago by nuxwin

  • Milestone changed from ispCP ω 1.0.7 to ispCP ω 1.0.8

comment:12 Changed 17 months ago by scitech

  • Owner changed from nuxwin to scitech
  • Status changed from assigned to new
  • Milestone changed from ispCP ω 1.0.8 to ispCP ω 1.0.7

comment:13 Changed 17 months ago by scitech

  • Status changed from new to assigned

comment:14 Changed 16 months ago by scitech

  • Status changed from assigned to closed
  • Resolution set to fixed

in r3394. Please test

comment:15 Changed 16 months ago by gOOvER

For me it works like charm without errors. Nice Feature :)

Note: See TracTickets for help on using tickets.