Issue Summary

I have tried migrating my multisite with subdomain from some live hosting to local by flywheel, however I encounter too many redirections error, and Warning! This site’s WordPress URL settings do not match the host set in local

Troubleshooting Questions


Firstly, I have created a local site with multisite with sub-domain on local. Then I have:

  • Downloaded public_html folder from my hosting provider using FileZilla, database using phpmyadmin.

  • Dumped “local” database in adminer, then imported the site’s database to it without any issues.

  • Changed database using following commands, of course changing the values for live and local site for appropriate ones:
    UPDATE wp_options SET option_value = replace(option_value, ‘’,
    http://yoursitename.local’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

UPDATE wp_posts SET post_content = replace(post_content, ‘’, ‘http://yoursitename.local’);

UPDATE wp_postmeta SET meta_value = replace(meta_value,‘’,‘http://yoursitename.local’);

  • Synced multi-site domains to hosts file in local

  • Changed wp-config so it looks like this now:
    Zrzut ekranu 2021-02-20 214932 Zrzut ekranu 2021-02-20 215339

then it redirects me to live website, if I change NOBLOGREDIRECT to http://mapa.local/ it will show the too many redirections error again.

System Details

Local version 5.9.8+5191

I’m on Win10

local-lightning.log (504.3 KB)

I would really appreciate helping me with solving the issue. I have tried setting it up on XAMPP for several days as well, to no avail.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.