How to Manage URL Redirects in DirectAdmin #
A site redirection will redirect URLs from one folder to another folder/domain. For example, redirect ‘https://domain.com/test1’ to ‘https://domain.com/test2’.
To create a new redirect in DirectAdmin: #
- Log in to your DirectAdmin control panel by accessing https://yourdomain:2222
- Navigate to Site Redirects
- Click on the Create New Redirect button
- Enter:
– Local URL Path – this is the path that will be redirected. It can be a file or directory.
– Redirect Type – you have three options here: 301 Permanent, 302 Temporary, and 303 Replaced.
– Destination URL – the new/destination URL. - Click on the Create button
- Test the new redirect in your web browser to check if it works as intended.
This DirectAdmin tool will modify the .htaccess file in your public_html directory. If you want to configure the redirect manually, you can edit this file in the DirectAdmin file manager (Files).