This is a super simple site redirect. This, of course, can get much more complicated than what is shown here.
Place this in the apache configuration file (non-Plesk boxen) or in a .htaccess file.
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
—–
If you want to redirect a site using the httpd.conf file inside a VirtualHost container you can do it this way (requires mod_alias):
ServerName original.domain.name
Redirect permanent / http://redirected.site.com/
</VirtualHost>
—–
Here is a simple redirect to take http://domain.com to http://www.domain.com.
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
This needs to be placed in each VirtualHost container and modified for the domain you are serving in that VirtualHost.
——
You can add this rule to allow browsing to a page without using the page extension. Place this in a .htaccess file in the directory.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
Replace the .html extension with whatever extension you are trying to remove from the filename.
——-
Redirect a URI to a new domain. This will redirect /ftp and anything below /ftp to the new domain. You can add a URI on the new domain as well (such as /folder/anotherfolder) to direct to a certain folder.