Ticket #1998 (closed enhancement: fixed)
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
Change History
Changed 2 years ago by JCD <frasch@…>
-
attachment
engine.patch
added
Changed 2 years ago by JCD <frasch@…>
-
attachment
php.patch
added
Patch for client subdomain manage files
Changed 2 years ago by JCD <frasch@…>
-
attachment
config_parts.patch
added
Patch for config template parts
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
-
attachment
php.2.patch
added
Updated patch for client subdomain manage files
Changed 2 years ago by JCD
-
attachment
config_parts.2.patch
added
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
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
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: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 :)



Patch for subdomain engine files