Docs Home Return to Homepage
Get Started Login

How to Redirect a Page or Domain in DirectAdmin

Last updated Changelog

On this page

A redirect sends visitors from one address to another as soon as they open it. Use one when you move a page, change domain, or want a short address that leads somewhere else. In this example yourdomain.com/news sends visitors to the blog at blog.yourdomain.com.

Steps

  1. Log in to DirectAdmin. In the Account Manager section, click Site Redirects. If you have more than one domain, pick the right one at the top right of the page first.

    The DirectAdmin Account Manager section with Site Redirects highlighted

  2. Click Create New Redirect.

    The Site Redirects page with Create New Redirect highlighted

  3. Fill in the redirect, then click Create:

    • Local URL Path: the page or folder to redirect, starting with /, such as /news.
    • Redirect Type: 301 — Permanent if the old address is gone for good (search engines move it over to the new one), or 302 — Temporary for a short-term change.
    • Destination URL: the full new address, starting with https://.

    Local URL Path /news, Redirect Type 301 — Permanent, the destination https://blog.directadmin.cranedemo.com/ and Create highlighted

  4. DirectAdmin shows Redirect Added, and the redirect is listed. It works straight away. To remove it, tick its box and click Delete.

    The /news redirect listed with type 301 — Permanent and its destination

In our test, https://directadmin.cranedemo.com/news went straight to the blog. /news/ (with a slash at the end) did too.

Troubleshooting

Problem What to do
The redirect still happens after I deleted it Browsers remember permanent (301) redirects. Try a private window, or clear your browser’s cache.
The redirect doesn’t work Check the Local URL Path starts with / and the Destination URL starts with https://. Make sure you created it on the right domain (top right of the page).

Snagged on something? Contact support and we’ll get you sorted.

Snagged on something?

Our sysadmins answer tickets around the clock.