let's encrypt unable to create http to https redirect

Hi I set up a wordpress site on a digital ocean one click install setup our website then changed the domain name over and when I installed certbot I incorrectly selected “don’t redirect all http traffic to https” thinking it would cause admin issues later, turns out the reverse is now I can’t invert it and can’t get certbot to add the redirect, I get this error when I try:

“Failed redirect for Enhancement redirect failed for Unable to find corresponding HTTP vhost; Unable to create one as intended addresses conflict; Current configuration does not support automated redirection”

Does anyone know how I could possibly remove the right files so I can run the certbot program to do it automatically, or possibly add the redirect in manually.

Been searching Google for hours and reading stack overflow and all the posts on here to narrow it down.

Thanks so much in advance, any help is much appreciated

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.

Solved by manually adding in the apache file