This article will help you to know how to enable and configure redirects in ISPmanager.
Redirect to HTTPS
To enable redirects to HTTPS, follow the steps:
- Go to Sites.
- Highlight the required domain, click , and choose Edit or choose Edit in the upper menu.
- Check the box next to Secure connection (SSL) in the Additional settings tab. Check the Redirect HTTP requests to HTTPS box.
- Click Save.
Attention! This redirect is used if you have an SSL certificate.
Other Redirects
Redirection is configured in the Sites section. To configure redirections, follow the steps:
- Select the required domain and click the Redirects button. Then select Add to add a new redirect.
- Highlight the required domain, click , and choose Redirects settings or choose Redirects settings in the upper menu.
- Click Add to add a new redirect.
- Fill in all the fields in the redirect creation window that opens:
- Redirect code – type of redirection. Usually 301 is specified to work correctly in the browser.
- Path – the file redirects the browser, when accessed by the web server. Starts with / and contains the path to the file relative to the www directory in the user's directory.
- URL – redirect address. Internal addresses start with /. External addresses start with http://, https://.
For example, to redirect from testdomain1.com to testdomain2.com, specify the following fields: - Redirect code – 301
- Path – /
- URL – http://testdomain2.com
- Click Create.
If you have any questions, you can ask them in the online chat in the lower right corner of the site or by ticketing the Techsupport Department.