Set up a 301 redirect on HostGator
A 301 redirect tells a browser and search crawler that an address has moved permanently. The old URL replies with the HTTP 301 status code and sends the visitor to a new destination. Use it when a page, service or domain has a permanent new home, so visitors do not meet a broken link and search engines can concentrate signals on the replacement. A redirect changes only the request path; it does not transfer files or create a copy of the destination page.
Most HostGator plans provide cPanel, which has a purpose-built redirect tool and is the safest place for a routine change. Sign in to the HostGator customer area and open the cPanel login, rather than the separate webmail login. The wider HostGator customer resources also provide routes to billing, invoices, domain purchases or transfers, tutorials, support tickets and forums, which is useful when confirming domain or account details.
Before changing anything, write down the complete old URL and its exact destination. Include the protocol, hostname, folder, trailing slash and any important campaign folder. Check that the destination page works, uses HTTPS and represents the preferred Australian site address. If the site uses a .com.au or direct .au domain, confirm the registration details and whether auDA eligibility or state-specific business requirements affect a domain move.
Understand what the redirect changes
A permanent redirect has two distinct effects. For a visitor, it replaces a broken or outdated address with the new page. For search engines, it is a strong indication that the old URL has been replaced, helping them consolidate indexed pages and discover the new destination. The response must point directly to the final URL. A chain such as an old page to a temporary address and then the final page slows delivery, adds another failure point and weakens the migration signal.
Choose the destination carefully because redirects are easy to apply in the wrong direction. The final address should use the canonical hostname, normally either the www or non-www version your Australian business consistently uses, with HTTPS. For a site with separate landing pages for Sydney, Melbourne and Brisbane, each location should keep its own relevant URL rather than sending all local traffic to a generic homepage. Preserve Australian English spelling in page names only when it matches existing links, as redirects can be case-sensitive in some server and filesystem configurations.
A 301 is intended for permanent moves, not temporary campaigns, seasonal offers or a short test. Use a 302 for those situations. It also cannot repair a missing destination: if the target returns an error, the visitor simply follows the redirect into that error. Before saving a rule, confirm that the destination returns 200, that the old source returns 301 and that the two URLs differ enough to avoid a loop.
Add the permanent redirect in cPanel
Sign in through the HostGator customer portal and open cPanel. In most current cPanel layouts, select Domains, then Redirects, then Add Redirect. Some accounts show the shortcut directly in the cPanel search box, while others expose it under the main Domains menu. The cPanel login is separate from webmail; using the wrong one can make a valid hosting account appear inaccessible.
In the redirect form, set the type to Permanent (301) and select the exact domain or subdomain that owns the old address. Enter only the old path in Source URL, such as old-service, without adding http, https or the hostname. Enter the complete destination, including https://, in Destination URL. The trailing slash can matter, so copy the working destination from the address bar rather than reconstructing it from memory.
For example, an old address at https://www.example.com.au/old-service/ can normally be represented in the source field as old-service or /old-service, depending on the cPanel screen. Its destination could be https://www.example.com.au/new-service/. Test the rule with the exact forms used in your menus and bookmarks. A redirect to a different domain is valid, but the full hostname and protocol are essential because the browser has no other information with which to locate the target.
After saving, cPanel usually records the rule in the domain’s .htaccess file and may show it in the Redirects list. Do not immediately edit that file, because two redirect systems can conflict. If the Redirects option is missing, the .htaccess method described below may be available instead. If you find several existing rules, document their order and purpose before changing anything, particularly when a WordPress site, CDN or caching layer is also involved.
Handle custom and WordPress redirects
Open File Manager in cPanel, enter the public_html directory for the domain and make a backup of .htaccess before editing it. For a simple path move, a rule can look like this:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^old-service/?$ https://www.example.com.au/new-service/ [R=301,L]
The L flag stops processing after the redirect, the pattern is anchored to one path, and the destination is a full HTTPS URL. A query string is normally carried through, but links with campaign parameters should still be tested.
If .htaccess already contains Options +FollowSymLinks or RewriteEngine On, do not add duplicate directives. Place the rule where it will run before a catch-all WordPress rule, then upload the file with the same permissions it had. An overly broad pattern can redirect every page beginning with a similar word, while a malformed expression can produce a server error rather than a redirect. Download a fresh copy after saving so the backup and live file remain distinct.
On WordPress, a maintained redirection plugin is usually easier for non-technical users because it provides a searchable source-to-destination map. Install one redirect plugin, import or enter existing rules carefully, and avoid combining it with several other redirect plugins. Clear the WordPress, server and CDN caches after testing. If the plugin uses a database table, retain an export alongside the .htaccess backup, especially before a major sale, migration or planned website redesign.
Test the redirect before and after activation
Test outside the browser cache first. Paste the old URL into a private window and follow every link, including any redirect chain; the address bar should finish on the new HTTPS page. For a command-line check, run curl -I https://www.example.com.au/old-service/ and confirm a 301 response with a Location header. Repeat with the alternate trailing-slash form if both occur in your links. A browser may retain a cached 301, so testing from the same window can hide a broken change.
Customer reports can reveal whether a perceived redirect failure is actually a hosting, login or cache problem. Reading the HostGator customer reviews can provide that context before you alter a URL that may already be used in email signatures or saved bookmarks. Support tickets, analytics landing pages and Search Console coverage then show whether real traffic still reaches the old address.
For Australian businesses, test on both a fixed broadband connection and a mobile network, because behaviour can differ in regional areas and across the Sydney, Melbourne and Brisbane markets. Check that the new page loads promptly and that no Australian-dollar or campaign-specific link points to an unintended address.
Before you save the rule:
- Record the full old URL, including protocol, host, path and trailing slash.
- Confirm the final destination loads over HTTPS and returns a normal 200 response.
- Back up
.htaccessand note any WordPress, CDN or caching rules. - Check that the destination hostname matches the preferred www or non-www form.
After you activate it:
- Request the old URL and confirm status 301 with the correct
Locationheader. - Follow the redirect to ensure there is no loop, chain or unexpected destination.
- Check analytics, Search Console and support reports for visits to the old URL.
- Update internal links, bookmarks, email campaigns and advertised URLs.
Roll out and document the change safely
Use a simple redirect register: old URL, destination URL, reason, date, person responsible and test result. This matters more during a busy Australian small-business campaign, when several teams may publish links at once. Search the register for city, service and campaign terms, then update links in the website, email platform, Google Ads, social profiles and printed material where practical. Internal links should point directly to the new URL rather than deliberately passing through the redirect.
Watch Search Console and web analytics for several weeks, while keeping an eye on HostGator invoices and account messages through the customer portal. Depending on the payment route, an Australian customer may see US-dollar charges, exchange-rate differences and card fees rather than a simple AUD total; retain the invoice and payment records for tax purposes. A redirect itself needs no DNS change when the host remains the same. A domain migration does, so coordinate nameserver or registrar changes with the redirect rollout to avoid downtime.
Most importantly, document every rule so it remains easy to correct. The practical takeaway is to test one source URL at a time, require a direct 301 response and a working HTTPS destination, and keep the redirect register current as the Australian site evolves.