WordPress switch domains

First of all, go to phpMyAdmin, go to your database for test.site.com and edit siteurl and/or home in wp_options table. That’ll fix your test.site.com Now, to migrate test.site.com to site.com, as you’ve difficulties doing it manually, I’d suggest a plugin like Duplicator or All-in-One WP Migration to migrate the site. It’s way easier that way. … Read more

URL problem in my site

Use the duplicator plugin. It basically make a snapshot and an Installer.php file. When moving the archive snapshot zip and php file to your new server, you navigate to http://yoursite.com/Installer.php. It’s like a setup process that asks you for your new database (you can point it to an empty database) and what the new URL … Read more

change home_url and site_url but don’t redirect to home_url and site_url on load

You need to set the WP_SITEURL and WP_HOME in wp-config.php file. Please add below code. define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); In your server SSL setup then used below code define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);

Update siteurl and home in multisite subsites to https

Solved: Add these code to the functions.php file of your subsite’s theme, immediately after the initial ” AND READ THIS, BEFORE USING: https://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php if ( ! is_admin() ) { $xsiteurl = get_option( ‘home’ ); $find = array( ‘http://’, ‘https://’ ); if ( $find != ‘http://’ ) { $replace=””; $pureaddress = str_replace( $find, $replace, $xsiteurl ); … Read more

How to set a home page on a WordPress site?

I suspect that you have a page/post that is titled ‘things-to-do-in-sebring-florida’ (without the dashes – space characters are automatically converted to dash/hyphen for the URL when WP saves the page/post). At some point, you created a new page/post (or copied) with the same title. Since the title is the same, you can’t have two URLs … Read more