Docs: Redirect from GitLab pages URL to custom domain when one exists
All threads resolved!
All threads resolved!
Compare changes
Files
2+ 8
− 8
@@ -70,7 +70,7 @@ response attributes:
@@ -70,7 +70,7 @@ response attributes:
| `path_prefix` | string | Path prefix of this deployment when using [parallel deployments](../user/project/pages/index.md#parallel-deployments). |
| `default_domain_redirect` | string | Default domain where all Pages requests will be redirected. |
@@ -91,14 +91,14 @@ Example response:
@@ -91,14 +91,14 @@ Example response:
"url": "http://html-root-4160ce5f0e9a6c90ccb02755b7fc80f5a2a09ffbb1976cf80b653.pages.gdk.test:3010/",
"url": "http://html-root-4160ce5f0e9a6c90ccb02755b7fc80f5a2a09ffbb1976cf80b653.pages.gdk.test:3010/mr3",
@@ -125,7 +125,7 @@ Supported attributes:
@@ -125,7 +125,7 @@ Supported attributes:
| `id` | integer/string | Yes | The ID or [URL-encoded path of the project](rest/index.md#namespaced-paths) |
| `pages_default_domain_redirect` | string | No | Set the default domain from the existing assigned domains to which all Pages requests will be redirected. |
@@ -143,13 +143,13 @@ response attributes:
@@ -143,13 +143,13 @@ response attributes:
| `path_prefix` | string | Path prefix of this deployment when using [parallel deployments](../user/project/pages/index.md#parallel-deployments). |
| `default_domain_redirect` | string | Default domain where all Pages requests will be redirected. |
curl --request PATCH --header "PRIVATE-TOKEN: <your_access_token>" --url "https://gitlab.example.com/api/v4/projects/:id/pages" \
--form 'pages_unique_domain_enabled=true' --form 'pages_https_only=true' --form 'pages_default_domain_redirect=https://custom.example.com'
@@ -165,14 +165,14 @@ Example response:
@@ -165,14 +165,14 @@ Example response:
"url": "http://html-root-4160ce5f0e9a6c90ccb02755b7fc80f5a2a09ffbb1976cf80b653.pages.gdk.test:3010/",
"url": "http://html-root-4160ce5f0e9a6c90ccb02755b7fc80f5a2a09ffbb1976cf80b653.pages.gdk.test:3010/mr3",