Charlie Tupman
Charlie Tupman

Reputation: 529

Wordpress redirect loop with MAMP pro on local machine

I downloaded a wordpress website to my local machine and set up a host on MAMP Pro with an export of the live database, now I keep hitting a redirect loop on the main page when I try to view the website, it doesn't matter whether I reset the .htaccess file, clear all my cookies, delete my plugins or do any other of the recommended things it keep coming back. The official error is:

This webpage has a redirect loop

ERR_TOO_MANY_REDIRECTS

Upvotes: 1

Views: 1955

Answers (6)

Aad Wagner
Aad Wagner

Reputation: 1

Just check the url in your database. If there are any capitals in it change that. Just like Robertus said. Simple solution that worked for me.

(MAMP Pro - MacOS)

Upvotes: 0

I had the problem when trying to open a static homepage. I tried different themes. It was strange: in MAMP and also in Wordpress the site-name was with capitals like WP_bones, but the url in the browser was wp_bones:8888; no capitals, all undercast So I changes the name in the database to undercast and the problem was solved.

Upvotes: 0

fpersyn
fpersyn

Reputation: 1096

I was able to resolve an identical issue by doing the following:

  • In the wp_options table of your site's database check if the port numbers for option_name siteurl and home match those of your server. Update them if not.
  • Remove the port number from $root_dir in wp-config.php

This error occured on an older project running Wordpress 4.1 after changing the ports on my MAMP apache server months earlier. Hope that helps.

Upvotes: 0

squizyt
squizyt

Reputation: 31

As I was moving from Windows environment to Mac OS probably on the copy files i was missing the install.php file. And when i tried to install the theme it would bring me the redirect loop screen.

It was confusing to me because I was following all steps at the end I went to look for the install.php and saw it was missing there put it in the place and voila!

Maybe will help i don't know, for the next readers to come!

Upvotes: 0

Tanner
Tanner

Reputation: 173

Are you using HTTPS by any chance? If so you may want to add

$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_ADMIN', true);

To the top of your wp-config.php file.

You might want to also check your database to see if the site url's are correct.

Upvotes: 0

KristineAlnes
KristineAlnes

Reputation: 1

I had the same issues. Somehow resetting the permalinks settings in the admin panel to plain fixed the problem.

Upvotes: 0

Related Questions