Moving to a new domain in the same server

You are facing the error because the database tables have old domain stored in all tables and post meta data. You need to replace all instances of previous domain with the new one in the database, the following link will help: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ You should also update your permalinks after the above process.

Website redirecting to old domain name

There are a few variables that need to be changed in order for you to update to the new link on your WordPress site. As mentioned by Mark, try the following steps using the Search Replace DB tool: Go and download Interconnect IT’s Database Search & Replace Script here Unzip the file and drop the … Read more

WordPress live site images not displaying

You can either use the SQL query or use the Velvet Blues WordPress plugin. Via SQL UPDATE wp_posts SET post_content = REPLACE(post_content, ‘localhost/test/’, ‘www.yourlivesite.com/’); This will resolve the broken links and missing images issue.

Move WordPress site from one domain to another

There are a number of ways to do this, Install WordPress on new host, export, then import post data (via Dashboard) XML file Install WordPress on new host, export, then import MySQL database file Use a back up plugin that allows you to clone your site from host-to-host (1:1) In both cases 1 and 2, … Read more

root-relative links for multiple parked domains

I tracked the function calls in my theme (a child theme of Oenology by Chip Bennett) and wp-include that generate the links, found the home_url() function, and then wrote these functions for my site: function gregory_make_relative($url=””) { return preg_replace( ‘#^https?://[^/]+/#iu’, “https://wordpress.stackexchange.com/”, $url, 1 ); } add_filter( ‘home_url’, ‘gregory_make_relative’, 11, 1 ); I intentionally grep-searched to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)