By Cory Miller
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!
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.