URL Redirects
Overview
The URL Redirects page lets you pick one canonical address for your website: redirect between the www and non-www versions of your domain, and force visitors to use HTTPS.
Open it by selecting URL Redirects in the site's left-hand menu.
Redirect between www and non-www
- Check Enable URL Redirect.
- Under Choose the preferred URL format, select one of the two options (each option shows the redirect direction):
- non-www: redirects
www.domain.comtodomain.com. - www: redirects
domain.comtowww.domain.com.
- non-www: redirects
- If the redirect should also work when visitors use HTTPS (for example
https://www.domain.com→https://domain.com), also check Enable SSL for Redirect URL. If the site uses a free SSL certificate, the certificate is reissued to cover both domains. - Click Update.
While Enable URL Redirect is unchecked, the options in steps 2 and 3 are disabled.
DNS records required for both domains
Before checking Enable SSL for Redirect URL, create DNS records pointing to your server for both www and non-www. If either is missing, free SSL issuance will fail.
Force SSL
- Check Force SSL to automatically redirect all HTTP requests to HTTPS. Uncheck it if the site should stay reachable over HTTP without being redirected.
- Click Update.
This option is enabled by default for new websites. It only takes effect once the site has an active SSL certificate.
Notes
- Changes are applied to the server in the background; the Update button shows a loading state until they finish. You can follow progress on the site's Events page.
- If your browser still follows the old redirect after a change, clear the browser cache or try a private window.