Redirect website to a new domain


Can someone please help me how can i redirect my old domain to a new domain It should be a full redirect each and every page/link should be redirected to the same page of new domain.

Without knowing any details, here’s a crapshoot for an htaccess file in the root directory of your old domain:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^abc\.com [NC]
RewriteRule ^(.*)$$1 [L,R=301]

that (of course) assumes that you are using an Apache webserver.

links (and perhaps also pages) could also present a more complex problem. It all depends on what and how the website is using.

Some of this information should have been given in your OP but you avoided that rather Critical Information which you were prompted for.

performing a basic redirect is very easy in Virtualmin Web Configuration -> Website Redirect

1 Like