Support » Networking WordPress » localhost redirected you too many times.(Multisite)

  • Hi there. i have downloaded a multisite live website from cpanel to my localhost.
    I’ve changed home url in wp-config.php and database tables(wp-options, wp-site, wp-sitemeta).
    i’ve also tried deactivating plugins and themes but problem is still there. please help me figuring out this bug im exhausted.
    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael

    (@michaelvdberg)

    Thread Starter ahmedshafiqqq

    (@ahmedshafiqqq)

    no Micheal it doesnt help me. Its redirecting me too many times. i have changed all the paths in Database and wp-config.

    Michael

    (@michaelvdberg)

    Did you rewrite the .htaccess file to a clear multi-WordPress .htaccess file? Maybe this will create the issue. Otherwise you have to install a fresh multi-WordPress in your localhost (I don’t know which software you are working with) and copy the core files (like images, themes, plugins) to your localhost.

    The only part is that you have to change the url’s in your SQL database, after importing in your phpmyadmin of your localhost software.

    A “too many times redirecting” is mostly an effect after a redirect, in mostly cases by some the .htaccess file. (See for a clear .htaccess on https://codex.wordpress.org/htaccess#WordPress_3.5_and_up)

    Hello,
    Let me jump into this forum. I have a similar problem.
    I set up a site, and then created a network, by following the instruction in the page below.
    https://codex.wordpress.org/Create_A_Network

    I edited wp-config.php and htaccess files. But if I try to open dashboard of the new site, it always says;
    This page isn’t working
    ramen-uroko.com redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    I read the explanation in the page above,
    https://codex.wordpress.org/htaccess#WordPress_3.5_and_up
    but I’m still not sure if I edited my .htaccess file correctly or not.

    Later part of the .htaccess files went as below;

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    AddHandler x-mapp-php5.5 .php

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    I simply replaced the lines between “# BEGIN WordPress” and “# END WordPress” with the lies below, as instructed;

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Is this what I am supposed to do? If so, what else prevents me from creating a network?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘localhost redirected you too many times.(Multisite)’ is closed to new replies.