A redirect sends visitors from one address to another, for example from an old page to its replacement. Use a permanent (301) redirect so search engines update their links too.
Redirect a page with .htaccess
- Open the File Manager and go to
httpdocs. - Open
.htaccess, or create it if it does not exist. - Add a line for each redirect:
Redirect 301 /old-page https://yourdomain.co.nz/new-page - Save the file. The redirect works straight away.
Redirect a whole website
To send everything to another domain, add this to .htaccess:
RewriteEngine On
RewriteRule ^(.*)$ https://newdomain.co.nz/$1 [R=301,L]
WordPress keeps its own rules in .htaccess. Add redirects above the
# BEGIN WordPress line, or use a redirect plugin.Want us to do it? Open a ticket with the old and new addresses.