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://www.example.com to http://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]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
- 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 removing www redirect with http to https redirect, then check THIS article.