Skip to content
xYnta
Go to websitexynta.com
Search
EN

Redirecting a domain name or web address

Updated on

With Site Redirects in DirectAdmin you redirect visitors of your domain name, or of a single path of it, to another web address. If the domain name is a standalone domain name at xYnta (without a hosting package), read Redirecting a domain name to another web address.

  1. Log in to DirectAdmin

    Log in via Single Sign-On from Mijn xYnta, or at https://yourdomain.nl:2222. If you have several domain names, choose yourdomain.nl at the top right (see Switching between domain names).

  2. Open Site Redirects

    Under Account Manager, click Site Redirects.

  3. Create a new redirect

    At the top right, click CREATE NEW REDIRECT.

  4. Choose what to redirect

    Leave the / under Local URL Path to redirect the whole domain name, or enter a path, such as /folder, to redirect only yourdomain.nl/folder.

  5. Choose the type

    Under Redirect Type, choose 301 — Permanent for a lasting redirect or 302 — Temporary for a temporary one. Only use 303 — Replaced if you know you need it.

  6. Enter the new address

    Under Destination URL, enter the full address you want to redirect to, with https://.

  7. Create the redirect

    Click CREATE.

The redirect works straight away. Whatever comes after the path is passed on: if /folder is redirected to https://www.example.com/, then yourdomain.nl/folder/page ends up at https://www.example.com/page.

Other ways to redirect

With a PHP file, for example index.php in the folder you want to redirect:

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

With the .htaccess file, by adding these rules:

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

Replace https://www.example.com/ with the address you want to redirect to.

Related articles