Plesk provides built-in options for common redirects without editing code. This is useful for:
- forcing HTTPS (HTTP → HTTPS)
- choosing the preferred domain (www ↔ non‑www)
- forwarding one domain to another URL
Open Hosting Settings
- Log in to Plesk (open it from the service page in My.GARMTECH).
- Go to Websites & Domains.
- Find your domain and click Hosting Settings.
Force HTTPS (301 redirect)
- In Hosting Settings, make sure SSL/TLS support is enabled.
- Enable Permanent SEO-safe 301 redirect from HTTP to HTTPS.
- Click OK or Apply.
Note: HTTPS redirect will work only if an SSL certificate is installed for the domain (for example, Let’s Encrypt).
Choose www or non‑www as the preferred domain
- Open Hosting Settings.
- Find Preferred domain.
- Select one option:
- www (example:
www.example.com)
- non‑www (example:
example.com)
- Save changes.
Forward a domain to another URL
- Open Hosting Settings.
- Enable Redirect visitors to another URL.
- Enter the destination URL and choose whether the redirect is 301 (permanent) or 302 (temporary).
- Save changes.
Troubleshooting redirect loops
- If you use WordPress, make sure the WordPress Site URL matches your chosen redirect (www/non‑www and https).
- If you use caching (for example, LSCache), clear cache after changing redirects.
- Do not enable the same redirect in multiple places (Plesk + WordPress plugin + CDN) at the same time.