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 http://kinglimollc.com still redirects to https://kinglimoservices.com.
Any help is greatly appreciated!

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.

Submit an Answer
1 answer

Hi @corysmiller,

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

curl -IL kinglimollc.com
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
Location: https://kinglimoservices.com/
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 kinglimoservices.com to kinglimollc.com

Kind regards,
Kalin D.