If adding the bellow is not working but only for the default directory in word press, congrats there should be no problem. You have a cache problem (if you don't care for the reason just skip to the bottom), which you cant use the normal refresh to fix. The reason is as soon as you go the the url you get redirected to a new url and then when you refresh you actualy refresh the new url not the old cache, so the fastest fix it is just to clear the cache & history.
define( 'WP_HOME', 'http://your_server/your_blog_url' );
define( 'WP_SITEURL', 'http://your_server/your_wordpress_url' );
special note: if you look in the wp_options table the first 2 entries also reference to the perm link
fast command to find it bellow
select * from wp_options limit 2
Just try clearing your browser cache & history, alternatively just open it in a browser you don't use much. If it works its a cache problem.