Redirecting a domain name or web address
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.
Enter a domain name, such as yourdomain.nl.
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, chooseyourdomain.nlat the top right (see Switching between domain names).Open Site Redirects
Under Account Manager, click Site Redirects.
Create a new redirect
At the top right, click CREATE NEW REDIRECT.
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 onlyyourdomain.nl/folder.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.
Enter the new address
Under Destination URL, enter the full address you want to redirect to, with
https://.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
Thank you for your feedback.

