For the complete documentation index, see llms.txt. This page is also available as Markdown.

Redirects

Create 301 and 302 URL redirects for your Hostinger website in hPanel or via .htaccess, including wildcard, domain, HTTPS, and www redirect examples.

Send visitors from one URL to another when you move content or restructure URLs.

Create a redirect in hPanel

  1. Open your website dashboard.

  2. Go to DomainsRedirects in the sidebar.

  3. Fill in:

    • Source URL — URL to redirect from (e.g., /old-page)

    • Destination URL — target URL

    • Redirect type — 301 or 302

  4. Click Save.

Redirect types

Type
Code
Use when

Permanent

301

URL has moved for good. Search engines transfer link equity.

Temporary

302

Short-term redirect; the original may come back.

Use 301 for most cases — site restructures, domain migrations.

Via .htaccess

Simple redirect

Wildcard redirect

Redirect all /blog/* to /articles/*:

Entire domain

HTTP to HTTPS

www to non-www

Manage redirects

Redirects created in hPanel are listed in the Redirects panel — click to edit, or Delete to remove. .htaccess redirects are managed by editing the file.


Last updated: July 22, 2026

Last updated

Was this helpful?