DirectAdmin Tutorial: How to redirect a domain name

To redirect a domain name you host in your DirectAdmin Hosting Account, please follow the steps below.

Note: Please make sure you are in "User" access mode.

Redirect a Domain Name

  1. From DirectAdmin Dashboard, hover to the navigation panel and look for Account Manager
  2. From the list/dropdown, click Site Redirection
  3. On the next page, click Create New Redirect

Redirect a Sub Domain

Unfortunately, DirectAdmin does not natively support redirects for subdomains yet. However, a simple solution can still be done to achieve a successful redirect. If you need help on this, please contact Support and we will be glad to do this for you.

  1. First, ensure that the sub-domain is created within DirectAdmin. If you haven't created the subdomain, please follow this guide
  2. From DirectAdmin Dashboard, hover to the navigation panel and look for System Info & Files
  3. Click File Manager
  4. Navigate to domains -> your-domain-name.com ->public_html -> your subdomain folder
  5. From the upper left part of the page, click New -> Text File -> Other, then type .htaccess
  6. Right-click on the newly created .htaccess file and select Edit
  7. Copy and paste the code below and hit Save
Redirect 301 http://newlink/

Please note that you should replace http://newlink in the code above with the address of the website you wish your sub-domain to redirect to.

It is important that you make sure to point your domain's name servers to ours, otherwise, if you're using a third-party DNS provider (eg: CloudFlare), appropriate entries pointing to our server IPs must be added.

  • directadmin, redirect, htaccess, .htaccess
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

DirectAdmin Reseller Tutorial: How to change a user's password

In this article, we will show you how you can reset a customer/user's password from within...

DirectAdmin Tutorial: How to add domain name (add-on domain)

To host a new domain name that you own in your DirectAdmin Shared Hosting Account, please follow...

DirectAdmin: How to install app via Softaculous (eg: Wordpress)

To install an app using our Softaculous Premium App installer, such as Wordpress, please follow...

DirectAdmin Tutorial: How to add a subdomain

To create a subdomain, please follow the steps below. Note: Please make sure you are in "User"...

DirectAdmin: Connect your e-mail to your Gmail

To connect the email account you've created on DirectAdmin with your Gmail account, use the...