Setup site redirection (via htaccess)

In order to setup site redirection using the htaccess file, perform the following steps:

  1. Log in to Sentora.
  2. Click File Manager.
  3. Open your site's root folder.
  4. Open the htaccess file.
  5. 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)
  6. 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]
  7. Save the changes.   
This will set up the permanent 301 redirection.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 7419