Skip to content

Redirects ​

Screenshot

Overview ​

URL: /client/redirects-page - in the sidebar under Domains.

The Redirects page allows you to create domain and page redirects. A redirect makes one domain or URL automatically redirect to another domain or URL, useful for pointing multiple domains to a single website or directing old pages to new locations.

Creating Redirects ​

Click the "Add Redirect" button to create a new redirect. For example, you can redirect www.example.com to www.example.net.

Adding a Redirect ​

The "Creating New Redirect" form allows you to set up automatic redirects from one domain or URL to another. Complete the following fields:

  • Redirect Type (dropdown) - Choose between Permanent (301) or Temporary (302) redirect
  • Domain to Redirect (dropdown, required) - Select the domain you want to redirect from
  • Path (text) - Enter the path to redirect. Placeholder: "/"
  • www prefix (dropdown) - Configure how www prefix is handled in the redirect
  • Redirects To (text, required) - Enter the destination URL. Placeholder: "https://www.example.com/sample/path"
  • Wild Card Redirect (checkbox) - Enable to apply the redirect to all subpaths

After configuring your redirect, click "Create Redirect" to save it or "Cancel" to exit the form.

Current Redirects ​

The "Current Redirects" section displays all active redirects on your account.

Search and Filter ​

Use the search bar to find specific redirects.

Empty State ​

If no redirects have been created, the page displays "No Redirects" with the "Add Redirect" button available to get started.

When a change is refused ​

Since panel 1.9.3, adding or deleting a redirect first checks where the domain's website folder and its .htaccess file really lead. If the website folder, a folder above it, or the .htaccess file has been replaced with a symbolic link that leads outside your home directory, the change is refused and nothing is stored or written:

The folder this change writes to, or a file in it, leads outside your hosting account, for example through a symbolic link. Nothing was changed.

Replace the link with a real folder or file, or point it inside your own home directory, then try again. A link that stays inside your home directory is accepted, also when it points outside the website folder.

If the panel cannot complete this check because the server agent does not answer, the change is refused with "Check that the agent is running, then try again." and nothing is changed. If the message persists, contact your hosting provider.

Over the API ​

Since panel 1.9.4, the client REST API manages redirects with the options of this page:

Method and pathWhat it does
GET /api/client/redirectsList the redirects of the account. domain_id narrows the list to one domain.
POST /api/client/redirectsAdd a redirect, like Add Redirect.
DELETE /api/client/redirects/{id}Remove a redirect.

A field the endpoint does not take, or a body that is not valid JSON, is refused by name with HTTP 422, and nothing changes. When the change is stored but the web server rules cannot be rebuilt, the answer carries status: partial with the reason and the next step, as When a change is refused describes for this page. The endpoints need this page's feature in your hosting plan; see API Keys.