MAMP Pro and WordPress Redirect Loops
I recently upgraded my local development server, going from MAMP to MAMP Pro. With the Pro version, I was tempted by the easy setup of virtual hosts and Postfix amongst other things, but noticed it also came with something called Extras. They are like Softaculous one-click installs of popular CMSs like WordPress, Drupal and Joomla. Installing a lot of WordPress sites development sites on my local machine, I thought I’d give the Extras a try.
Installing WordPress in MAMP Pro
MAMP Pro databases are stored in the Library/Application Support/appsolute/MAMP PRO/db/mysql folder, rather than the htdocs folder as in MAMP. So, I copied those over and after changing my Apache and MySQL ports so I could use localhost/ I was ready to go.
To install the Extras, click the Hosts tab and there you will find the Extras button on the right. At the bottom of the panel is a + icon which loads up the optional installations. At the current version of MAMP Pro, (220.127.116.11) you have the option of installing either WordPress 3.5 or WordPress 4. This has just been added. By default it will install on your localhost, unless you are using the Hosts option and creating URLs like local.mysite.com.
The WordPress Redirect Loop
Once the Extra is installed, you might notice that visiting the site throws up a problem – the page won’t load due to a WordPress redirect loop. (This doesn’t happen if you create a virtual host incidentally, the problem is tied to the localhost name.)
The fix for this redirect loop is relatively simple. Login to your site (most likely using the default installation username/password of Admin) and go to the Settings > General section. For the site url, you may well see something like: http://localhost:80/sitename. All you need to do is take out the :80 from the url and this should stop the redirect loops!
Let me know in the comments if this helped you.other page