Skip to content

How do I redirect a page or domain? Print

  • redirect, 301, htaccess, domain
  • 9

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

  1. Open the File Manager and go to httpdocs.
  2. Open .htaccess, or create it if it does not exist.
  3. Add a line for each redirect:
    Redirect 301 /old-page https://yourdomain.co.nz/new-page
  4. 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.


Was this answer helpful?

« Back