Question

How to safely remove old url's server block, wordpress files, and get rid of 301 redirect?

Old URL successfully redirected for over a year, no longer need it.

Changed the URL of my Wordpress blog a year ago. The old website’s wordpress files and config files remained on my Droplet all the while. No I want to get rid of everything to do with the old URL on my droplet, which includes ending the redirect, removing the URL from DO nameservers, etc.

Can someone please guide me in terms of what to do first, second, etc.? Any words of advice would be appreciated for the absolute novice writing these words.

Thank you very much for your time

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @thankyouDO,

Your task should be easy enough.

Nginx as you know works in blocks. You’ll just need to remove the nginx configuration file of the old domain name you used. Once you do, you can remove the files as well and restart nginx.

This should be it, that’s everything.

Regards, KDSys

Ubuntu 16.04 using Easy Engine Nginx