In order to setup site redirection using the htaccess file, perform the following steps:
- Log in to Sentora.
- Click File Manager.
- Open your site's root folder.
- Open the htaccess file.
- Open the htaccess file (e.g. use the File Manager in Sentora and locate the file in the site's root folder i.e. public_html)
- Enter the following lines:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC] - Save the changes.
This will set up the permanent 301 redirection.