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:
- In Your /domains/example.com/public_html directory create a file named .htaccess
- 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]
- Save and upload to Your server.
- If file .htaccess already exist, then check if it contain line:
RewriteEngine on - If no, then paste above code on top of the file.
- 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.