Infinite Redirect Loop after moving to subdirectory

As mentioned in my comment, ensure you test the following in a “clean” browser:

  1. Set siteurl & home to http://www.example.com/wordpress-subdirectory
  2. Set permalink_structure to nothing
  3. Set active_plugins to nothing
  4. Ensure there are no WP_SITEURL or WP_HOME constants defined in your wp-config.php
  5. Remove all rewrite rules to do with WordPress from your .htaccess

Not of all these steps are necessarily required, but I’m trying to cover all bases here.

Attempt to log in. If you hit a white screen of death, it’s most likely that your active theme is calling plugin-dependent functions. Change stylesheet and template in wp_options to twentyfifteen (or any default theme, and ensure it exists in your themes directory).

Test the frontend. All good? Go and activate each plugin again, one by one, testing the frontend each time.

Hit the problem again? Clear browser cache and reset active_plugins, then install & activate Deploy Helper

Head over to Tools > Deploy Helper.

In the “Fix paths and URLs” section, set From to http://localhost (or whatever you were using during development) and To to http://www.example.com/wordpress-subdirectory. Leave server paths as they are.

Run Fix.

Activate the troublemaking plugin again and all should be well.