hPanel Tutorial & Configuration Guide

How to Redirect a URL to a Different Domain in Hostinger (2026 Guide)

Updated: June 2026 Verified by SaaSphere Technical TeamCategory: Web Hosting Administration

1. What Is a Domain Redirect?

A domain redirect (also known as domain forwarding or URL redirection) is a technical mechanism that routes incoming web traffic from one domain name or specific URL path to a completely different destination address.

For instance, when a user types olddomain.com into their browser, the web server processes the request and automatically sends them to newdomain.com. This process happens behind the scenes in milliseconds, ensuring that your visitors reach the correct content without manual intervention.

Redirects are essential for maintaining user experience, preserving page ranks in search engines when renaming websites, mapping multiple domain variations, and keeping your organic rankings safe after platform migrations.

2. 301 vs 302 Redirects

Understanding the difference between a 301 redirect and a 302 redirect is critical for search engine optimization. Crawlers handle these instructions in very distinct ways:

301 Permanent Redirect

Tells search engines that the URL has moved forever. Search engines index the new target URL and transfer up to 99% of the link authority (SEO juice) from the old URL to the new domain. Use this for site moves, custom brand adjustments, and permanent structural modifications.

302 Temporary Redirect

Signals that the change is temporary. Crawlers will keep the original URL indexed and will not transfer link authority to the destination URL. Use this for seasonal promotions, A/B testing, system maintenance redirects, or temporary shopping page outages.

3. How to Redirect a Domain Using Hostinger hPanel

Hostinger has designed a dedicated graphical interface inside hPanel to handle URL redirects, making the process accessible without needing to touch server configuration files directly.

Step-by-Step hPanel Configuration:

  1. Log into your Hostinger hPanel.
  2. Navigate to the Websites tab and click Manage next to the domain name you wish to configure.
  3. Use the search bar on the left menu to search for Redirects (located under the Domains category).
  4. Under the Create a Redirect section, choose the type of redirect (301 Permanent or 302 Temporary).
  5. In the Redirect from field, enter the source page path (leave blank to redirect the entire root domain).
  6. In the Redirect to field, enter the full destination URL (e.g., https://newdomain.com).
  7. Click Create. Your redirect rule is now active.
[Screenshot Placeholder: Hostinger hPanel Redirects Menu Settings Dashboard]

4. How to Redirect a Single URL

If you only need to redirect a specific path (such as a promotional landing page or an old blog post URL) rather than your whole domain, you can configure a single URL redirect.

This can be done using the hPanel interface by specifying the path in the Redirect from field. For example, if you want to forward yourdomain.com/blackfriday to yourdomain.com/deals, you would input blackfriday as the source path and the full URL of the deals page as the destination.

Alternatively, for Apache-based web hosting plans on Hostinger, you can add a single line to your .htaccess file inside the public_html folder using hPanel File Manager:

Redirect 301 /blackfriday https://yourdomain.com/deals

5. How to Redirect an Entire Website

When migrating your entire business to a new domain name, you must route all old URLs to their matching counterparts on the new domain (wildcard redirection) to retain SEO authority.

To accomplish this, open the .htaccess file of your old website in the Hostinger File Manager and paste the following Rewrite Engine directives at the top:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$ [NC]
RewriteRule ^(.*)$ https://newdomain.com/$1 [L,R=301,NC]

*This script captures any path entered on the old domain (e.g., olddomain.com/about) and appends it to the new domain (newdomain.com/about), passing SEO rankings cleanly.

6. Redirecting HTTP to HTTPS

Securing your website with HTTPS is a ranking signal for Google. Hostinger provides a simple toggle inside hPanel under Advanced -> SSLnamed "Force HTTPS".

If you prefer to configure this at the server configuration level manually (or if you are running an custom app architecture), add this rewrite block to your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
[Screenshot Placeholder: Force HTTPS Toggle in Hostinger hPanel SSL Management Tab]

7. Redirecting www to non-www

Having both the www and non-www versions of your site accessible can lead to duplicate content issues. It is best practice to standardize on one.

To force all traffic to resolve on the non-www version of your site, add this block:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

To do the opposite (force non-www to www):

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

8. Common Redirect Errors

When setting up forwarding rules, minor configuration mistakes can break access to your website. Here are the most common issues:

  • Incorrect Protocol Syntax: Forgetting to include https:// in the destination field, causing the server to treat the redirect as a relative folder path.
  • DNS Cache Latency: Believing a redirect is not working because your local ISP DNS resolver is caching the old route. Always test in private incognito tabs.
  • Active CMS Conflicts: Setting up redirect rules in hPanel while having a WordPress plugin (like Redirection) trying to handle the same paths, creating structural crashes.

9. Troubleshooting Redirect Loops

A redirect loop occurs when your browser tries to load a page, and the server returns a redirect response pointing to a location that points back to the origin, throwing the error "ERR_TOO_MANY_REDIRECTS".

How to Resolve Loop Crashes:

  • Open Hostinger hPanel File Manager, locate your .htaccess file, rename it to .htaccess_old to disable all custom rewrites, and reload the site.
  • If the loop is fixed, inspect the file lines for circular commands.
  • Check if you have Cloudflare SSL configured. Having Cloudflare set to \"Flexible SSL\" while forcing HTTPS at Hostinger is the number one cause of redirect loops. Set Cloudflare SSL to \"Full\" or \"Full (Strict)\" to align server ports.

10. Best SEO Practices for Redirects

To preserve your search engine optimization authority during redirects, implement these guidelines:

  • Always Use 301 for Permanent Changes: Never use 302 redirects when migrating pages or changing domain names permanently.
  • Avoid Chain Redirects: Avoid redirecting URL A to B, and then B to C. Make A redirect directly to C. Chain redirects slow down page loading speeds and exhaust crawl budgets.
  • Update Internal Links: Do not rely on redirects to handle internal navigation. Always update your website menus, links, and footer paths to link directly to the new target URL.

Guide Quality & Editorial Integrity

SaaSphere maintains a dedicated technical sandbox lab to run active hosting server deployments. This redirect guide is updated for 2026 hPanel layouts and checked against real Apache/LiteSpeed config standards. Written by our in-house systems team.

Frequently Asked Questions (FAQ)

Verified Promo Deal

Need a new hosting tier? Get up to 85% OFF on Hostinger by using our verified promo code at checkout.

SAASPHERE
Claim Deal