If, like me, you get an endless 301 redirect loop and your browser tells you
Error 310 (net::ERR_TOO_MANY_REDIRECTS): there were too many redirects
you might solve it like this
Background: I imported a live site from a backupbuddy zip file backup. The live site is HTTPS (SSL Let’s Encrypt certificate) enabled
But in order for Local to work, you need to set siteurl and home to http:// (no https !!)
In order to find the options in the database:
- Open Local - Database - Adminer
- Select wp_option table (or replace wp_ with the prefix you have choosen)
- Select Search and enter
- option_name = home
- if option_value starts with https:// clicke edit and replace with http://
- repeat with option_name = siteurl
Now the site should work. If you still have problems may I also suggest checking or removing any .htaccess files you might have (when using nginx as the local http server)