Knowledge Base
Setting up redirects
Redirects send visitors from one address to another.
In DirectAdmin
- Log into DirectAdmin and open Site Redirection.
- Choose the domain, the address to redirect from, and the address to send visitors to.
- 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
wwwand non-wwwversions of your site to one of them. - Back up
.htaccessbefore editing, see Troubleshooting 500 errors.