KNOWNHOST WIKI

User Tools

Site Tools


control-panels:directadmin:how-to-redirect-site

How to setup site redirection

This guide is focused around deployed servers with DirectAdmin's new skin "Evolution"

DirectAdmin has a function within its panel called "Site Redirection" at the reseller level – this function is under the "Account Manager" section.

A Site Redirect is used to redirect a website and/or a subdirectory from its current location to another location as it receives requests. The "Site Redirection" can be used to setup the following redirects

  • 301 – Permanent Redirect (useful if you're wanting search engines to update their indexes)
  • 302 – Temporary Redirect (to a landing page or something similar)

We'll be going over the steps of how to setup a site redirect in this guide.

As always, if you ever require assistance – please reach out to us.


Creating the redirect

You'll need to login to your DirectAdmin user through the DirectAdmin Panel – or if you're the Administrator, you can drop into the user through the admin user.

Once your within the user of your choice – you'll go to Account Manager → Site Redirection as outlined in our screenshot.

Evolution - Default:


Evolution - Icon:


When you access this window, you'll see by default that you have no redirects. One will need to be created, so we can click "Create New Redirect" – the highlighted button.

This will provide a pop up window requesting the following information:

  • Local URL Path – Leave default if only wanting to redirect the domain
  • Redirect Type – 301 (Permanent) or 302 (Temporary)
  • Destination URL – The place you want it to go to

In our example; we're redirecting khtest.com to khtest2.com.

Once you've entered your options/parameters of how you want this to go → click "Create".

You'll be redirected back to the primary page that now shows your new redirect setup,

That's it, that's all there is to it – you've now setup your redirect!

We hope this guide has helped you during this process.

Additional Examples

There may be other needs for setting up a site redirection beyond just the original website. You may have moved a website from a previous folder or moved an installation to a new folder location.

Here's a list of further examples.

  1. Moving a CMS/Software installation from one folder to another (domain.com/wordpress to domain.com/wp)
  2. Renaming subpages for 301 purposes (domain.com/buystuffnow to domain.com/buynow)
  3. Redirecting from a no-longer served page.

These are all examples of a 301 redirect that you may utilize to help direct traffic back to your newer pages.

Commonly seen on top level content is the subpages renaming phase. Due to how Google indexes contents, user bookmarks, etc., you would need to set these up to preserve that traffic from those index and users bookmarks.

To expand on subpages, here's a detailed table:

Old Page New Page
domain.com/oldstuff/folders domain.com/newstuff/folders
domain.com/oldstuff/files domain.com/newstuff/files
domain.com/oldstuff/documents domain.com/newstuff/documents

All of the above redirects would be configured for 301 because we changed our URL structure and want these new pages to get that traffic.

control-panels/directadmin/how-to-redirect-site.txt · Last modified: 2019/07/17 14:21 by Derrick B.