Skip to content

Knowledge Base

Setting up redirects

Redirects send visitors from one address to another.


In DirectAdmin

  1. Log into DirectAdmin and open Site Redirection.
  2. Choose the domain, the address to redirect from, and the address to send visitors to.
  3. Choose a 301 redirect for a permanent move, which also tells search engines, or 302 for a temporary one.

With a file

Add this to the .htaccess in public_html:

Redirect 301 /old-page https://example.com/new-page

Tips

  • Redirect the www and non-www versions of your site to one of them.
  • Back up .htaccess before editing, see Troubleshooting 500 errors.
Please rate this article to help us improve our Knowledge Base.

0 0