How can i redirect my website "" to ""


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 as a first result. If i click that link it take me to apache home page, when i post complete URL like it take me to my site page.

How can i redirect to even i post

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

HI Date: Wed, 18 May 2016 14:30:00 GMT Server: Apache/2.4.7 (Ubuntu) Last-Modified: Wed, 18 May 2016 13:29:37 GMT ETag: “68-5331dd9575240” Accept-Ranges: bytes Content-Length: 104 Vary: Accept-Encoding Content-Type: text/html