I have a domain by Locaweb that redirects to my ip from vps via A and CNAME. It normally redirects the link mainly however when and typed link with http: // without the www and also even if http: // it is redirected to the main site other than access by entering only the www.
On the server everything is ok because my testing using ip instead of the domain normally.
Redirect: link thiagopacheco.com/images/android.png
It works normally link www.thiagopacheco.com/images/android.png
So how can I solve it?
via .htaccess or in the DNS zone?