I configured my Wordpress site to use a new domain name. I'm still using the same hosting provider. I have also set-up the old domain to redirect to the new one. Now, the thing I want to achieve is that I want to remove, from the site, all references to the old domain. However, whenever I point my browser to
it gets redirected to
If I point my browser to
it thinks that I'm requesting files in a directory named /wp-login and so gives me "Page not found" error of my site. But if I do
it displays the login form but on submit, I get redirected to
And finally, when I login, the url changes to
The other problem is that the theme is completely broken. I've inspected the html source whose
<script> tags call resources from
I have tried all the solutions there are out there. Among those are:
- changing the site and wordpress url from the dashboard settings.
- applying search and replace all instances of
http://new_domain.comin the database.
- trying the
define( 'RELOCATE', true );method; it sets the wordpress url to
- in here When moving a WP site, why does wp-admin redirect to old site?, I found these
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); define('WP_SITEURL', WP_HOME . '/');. Applied them thinking this would fix it as I'm not hard-coding any urls. But these, too, set both the site and wordpress url to
Can anyone point me in the right direction?
I didn't need to move the database or the Wordpress installation around as I didn't change hosting provider. So, as a last resort, would it be a good idea to delete the wordpress installation and reinstall it with all the themes in place?