> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.xynta.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Redirect a Domain or URL

||| ℹ️ **Important:** This article applies to our Web and Reseller Hosting packages.
---

* [Redirect a Domain or URL](#3-redirect-a-domain-or-url)
* [Redirect with PHP script](#4-redirect-with-php-script)
* [Redirect with .htaccess file](#4-redirect-with-htaccess-file)
* [Instructional Video](#3-instructional-video)
---

### Redirect a Domain or URL

1. Log in at `https://voorbeeld.cc:2222` (or use [Single Sign-On (SSO)](/en/article/logging-in-to-hosting-package-via-single-sign-on-sso-1biycbb/)).
2. Under **Account Manager**, click **Site Redirection**.
3. At the top right, click **+ CREATE NEW REDIRECT**.
4. Fill out the form as follows:

* **Local URL Path:** enter `/` to redirect the entire domain, or `/folder` to redirect only `voorbeeld.cc/folder`.

**Redirect Type:**
  
* **301 – Permanent:** recommended for permanent redirects.
* **302 – Temporary:** recommended for temporary redirects.
* **303 – See Other:** not recommended unless specifically required.

* **Destination URL:** enter the new address you want to redirect to.

5. Click the **CREATE** button to set up the redirect.

The redirect is now active.

||| ℹ️ **Note:**

If you want to forward a domain without hosting, you can use our free forwarding service. (More info: [Forwarding a domain name](/en/article/forwarding-your-domain-name-to-another-url-1wdlkqk/))
---

### Alternative redirect methods

#### 📄 Redirect with PHP script

Place the following code in a PHP file:

```
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://xynta.com/");
exit();
?>
```

#### 📄 Redirect with .htaccess file

Add the following lines to your .htaccess file:

```
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) https://xynta.com/$1 [R=301,L]
```

||| 📌 Important:

* Replace voorbeeld.cc with your actual domain name.
---

### 🎦 Instructional Video

${youtube}[](ISMF21bJVro)