A site redirection will redirect URLs from one folder to another folder/domain. For example, redirect http://domain.com/test1 to http://domain.com/test2
To create a new redirect in DirectAdmin:
- You should be logged in to DirectAdmin
- Navigate to Site Redirects
- Click on theCreate New Redirectbutton
- 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 theCreatebutton
- Test the new redirect in your web browser to check if it works as intended.
This DirectAdmin tool will modify the .htaccessfile in your public_htmldirectory. If you want to configure the redirect manually, you can edit this file in the DirectAdmin file manager (Files).