how to removeredirect 301 or make the www as the main and non-www one with redirect
i have created my droplet with the hostname website.com(example) and then add a CNAME with www that points my site. now my site with www shows one 301 redirect.
how can i change this state. i want to remove that 301 redirect from www and want to add that redirect to website.com so that anyone who type website.com lands in www.website.com and www.website.com stays without any redirect.
im on ubuntu 14.04 with apache
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.