I want to move the site I was working on on localhost to a testing server. I have copied the database over as well as all the files. I want to be able to run my site from the testing server with the following url:
After moving the files over, I changed the following in my wp-config.php:
define('DB_NAME', 'my_db_name'); define('DB_USER', 'ellen'); /** MySQL database password */ define('DB_PASSWORD', '*****'); /** MySQL hostname */ /** I tried changing this to the IP address but it gives me a connection error **/ define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('FS_METHOD', 'direct'); define('WP_ALLOW_REPAIR', true); define('FORCE_SSL_ADMIN', false); /*Redefine the site url*/ define('WP_HOME','http://<IP_ADDRESS>/website'); define('WP_SITEURL','http://<IP_ADDRESS>/website');
In the functions.php file of the theme I was using, I added this:
update_option( 'siteurl', 'http://<IP_ADDRESS>/website' ); update_option( 'home', 'http://<IP_ADDRESS>/website' );
When I try to access my site in the browser, I get the following error:
This page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
It tries to redirect me to
http://<IP_ADDRESS>/website/wp-login.php, which is the page I want to go to. I'm unable to get to wp-admin since I can't log in.
I'm not really sure how to go about debugging this. Any help is appreciated.