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
- From DirectAdmin Dashboard, hover to the navigation panel and look for Account Manager
- From the list/dropdown, click Site Redirection
- 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.
- First, ensure that the sub-domain is created within DirectAdmin. If you haven't created the subdomain, please follow this guide
- From DirectAdmin Dashboard, hover to the navigation panel and look for System Info & Files
- Click File Manager
- Navigate to domains -> your-domain-name.com ->public_html -> your subdomain folder
- From the upper left part of the page, click New -> Text File -> Other, then type .htaccess
- Right-click on the newly created .htaccess file and select Edit
- 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.