Example: how to create a redirect.


If you have 2 domains (not necessarily on the same site) domain1.tld and domain2.tld, and you need to change the address to "correct" when accessing domain2.tld", and redirection immediately occurred, then add for the domain domain2.tld redirection to http://domain1.tld /


if you need an automatic redirection to when accessing your domain domain.tldwww.domain.tld , create a file on the virtual site in the /home/uXXXX/domain.tld/www directory .htaccess (note that the file name starts with a dot) as follows:


RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.tld
RewriteRule ^(.*)$ http://www.domain.tld/$1 [R=permanent,L]

domain.tld — your domain name.