Question
How can i redirect my website "example.com" to "www.example.com"
Hi,
I created a new droplet and added my existing domain from Godaddy. Later i configured my website in apache under /var/www/ with the name example. Now the problem is when i search example in google it is giving example.com as a first result. If i click that link it take me to apache home page, when i post complete URL like www.example.com it take me to my site page.
How can i redirect to www.example.com even i post example.com?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Can you share your config file, that would be the easiest way to quickly troubleshoot this.
Please Help me
Thanks