I have this in my .htaccess file:
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
It should work fine but give me error
http://www.website.com/public_html/ Not Found
The requested URL /public_html/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an Error Document to handle the request.