View Categories

How to manage URL redirects in DirectAdmin

< 1 min read

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:

  1. You should be logged in to  DirectAdmin
  2. Navigate to Site Redirects
  3. Click on the Create New Redirect button
  4. 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.
  5. Click on the Create button
  6. 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).

Powered by BetterDocs