Trying to change edit the wp-config.php
file was a good idea, let’s try some extra things to see if they solve the problem. Let’s add these lines to the bottom of your functions.php
:
update_option( 'siteurl', 'http://LOCAL_HOST_IP/wordpress' );
update_option( 'home', 'http://LOCAL_HOST_IP/wordpress' );
Using Relocate method
Edit your wp-config.php
file inserting:
define('RELOCATE',true);
After that, from your browser manually access to wp-login.php
. For example, type http://LOCAL_HOST_IP/wordpress/wp-login.php
into your browser’s address bar, and then login as usual.
Changing the URL directly in the database
- Login to phpMyAdmin.
- Find your DB and then the table
wp_options
- Look for
siteurl
andhome
within that table - Use
http://LOCAL_HOST_IP/wordpress
for both and save.
Check the full Codex Changing Site URL guide.