• Hi,
    After change the main domain name, change user, change database name on WHM and Cpanel.

    I got this This webpage has a redirect loop

    Reload Less
    The webpage at http://thoinayonline.com/wp-signup.php?new=thoinayonline.com has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
    Learn more about this problem.
    Error code: ERR_TOO_MANY_REDIRECTS

    Do you have any idea what going on?
    Was it related to server or just wordpress?
    my domain name is http://www.thoinayonline.com

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Thread Starter thoinayonline

    (@thoinayonline)

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Did you, as I linked you to, search the DB with the script and change the domain properly?

    Thread Starter thoinayonline

    (@thoinayonline)

    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.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter thoinayonline

    (@thoinayonline)

    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.

    Thread Starter thoinayonline

    (@thoinayonline)

    I have no idea on how to edit the database using script.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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.

    Thread Starter thoinayonline

    (@thoinayonline)

    Hi Ipstenu,

    I upload search and replace script to root folder but when i dry run or live it had error message.

    Thread Starter thoinayonline

    (@thoinayonline)

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Did you RUN the script and please the old URL?

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Error code: ERR_TOO_MANY_REDIRECTS’ is closed to new replies.