I change the domain name on WHM—>modify account, then i change the user too. then i rename the database, and change the database in in wp-config, the domain name.
I did not do anything with .htaccess.
and it said redirect loop.
http://www.thoinayonline.com
Did you, as I linked you to, search the DB with the script and change the domain properly?
domain name, hostname properly change. they said the database name is ok. the redirect loop is involved with wordpress they have no training on wordpress.
Not Database NAME database content.
You have to edit some of the values in the database.
If, instead, you are changing domains, then the best way to move Multisite is to move the files, edit the .htaccess and wp-config.php (if the folder name containing Multisite changed), and then manually edit the database. Search for all instances of your domain name, and change them as needed. This step cannot yet be easily automated. It’s safe to search/replace any of the wp_x_posts tables, however do not attempt blanket search/replace without the Search and Replace for WordPress Databases script.
The script is here: https://github.com/interconnectit/Search-Replace-DB
I bolded the part I’m trying to get you to answer 🙂 Did you do THAT?
If you DID NOT use that script, then THAT is why you’re all messed up.
You said edit the .htaccess,,,what do i have to add in htaccess.
Here is my htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ – [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
——————————-
wp-config
define(‘DB_NAME’, ‘thoinay_one’);————>this is new database name
/** MySQL database username */
define(‘DB_USER’, ‘thoinay_one’);————>this is new database name
define(‘WP_DEBUG’, false);
define(‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, true);
define(‘DOMAIN_CURRENT_SITE’, ‘thoinayonline.com’);—>new Domain name
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);
Still have no idea on how to do the database.
I have no idea on how to edit the database using script.
I have no idea on how to edit the database using script.
That’s the problem then. You need to go here: https://github.com/interconnectit/Search-Replace-DB
Install the script. Then run it and tell it you’re changing olddomain.com to newdomain.com
It’s really straightforward.
Hi Ipstenu,
I upload search and replace script to root folder but when i dry run or live it had error message.
Warning: Creating default object from empty value in /home/thoinay/public_html/wp-includes/ms-settings.php on line 111
Warning: Cannot modify header information – headers already sent by (output started at /home/thoinay/public_html/wp-includes/ms-settings.php:111) in /home/thoinay/public_html/Search-Replace-DB-master/index.php on line 347
————–
The scrip encountered an error while running an AJAX request. If you are using your hosts file to map a domain try browsing via the IP address directly. If you are still running into problem we recommend trying CLI script bundled with this package. See readme for details
Did you RUN the script and please the old URL?