Webhosting1st is offering reliable and cheap web hosting, prices are starting at just $10/year, for more details please check our plans.

If You wish to redirect Your website from http://example.com to http://www.example.com in DirectAdmin (or any other panel), follow below steps:

  1. In Your /domains/example.com/public_html directory create a file named .htaccess
  2. Paste below code:
     
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www. [NC]
    RewriteCond %{HTTP_HOST} ![0-9]$ [NC]
    RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  3. Save and upload to Your server.
  4. If file .htaccess already exist, then check if it contain line:
    RewriteEngine on
  5. If no, then paste above code on top of the file.
  6. If yes, then replace line RewriteEngine on” with above code.

If You wish to combine www redirect with http to https redirect, then check THIS article.