My site keeps redirecting to old domain after disabling lets encrypt

I needed to switch domain names for a wordpress site I just deployed. I made the change in the network section in the digital ocean dash board. I took out all re-direct commands in my config file in the sites-enabled folder. I ran a2dissite on the old ssl config and the default-ssl.conf as well. Its been 48 hrs now and still redirects to Any help is greatly 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.

Hi @corysmiller,

I’ve done a curl request to the domain. Here is the output

curl -IL
HTTP/1.1 301 Moved Permanently
Date: Thu, 05 Sep 2019 10:39:46 GMT
Server: Apache/2.4.29 (Ubuntu)
X-Redirect-By: WordPress
Content-Type: text/html; charset=UTF-8

In reality, the redirection is actually coming from Wordpress, maybe the .htaccess file or your database. What you’ve done is actually an internal migration however there are an internal links to the old domain.

You’ll need to do a search and replace on your database and change every link from to

Kind regards, Kalin D.