By default, Magento Admin URL is set to <domain_name>/admin. This article shows how to change the URL.
Method 1: Change using Magento Admin
Read the steps: Using a Custom Admin URL > Change from the Magento Admin (Magento User Guide).
Method 2: Add ADMIN_URL environment variable
From your Project Web Interface, add a new variable with:
Value: new Admin URL
Read on DevDocs:
When Staging and Production are not available in Project Web Interface
Submit a support ticket requesting to add the ADMIN_URL variable for your Staging or Production environment.
If Staging and Production are accessible from your Project Web Interface, add the Environment Variable as described in the Integration environment section above.
Add variables using Cloud CLI
See Add environment variables (DevDocs) for detailed steps.
We don't recommend adding global variables via Cloud CLI (the
magento-cloud project:variable:set <name> <value> command) since such global variables:
- get inherited by your Staging/Production environments (if these are included in your Project Web Interface)
- trigger the undesired redeploy process on all branches/environments of your project
We recommend adding environment variables for every branch/environment using the
magento-cloud variable:set command.