Search code examples
phpdrupaldrupal-6mampredirect-loop

Redirect Loop on Drupal 6 after moving website


I posted a question earlier today asking which files needed to be changed to move drupal to MAMP successfully.

I've now moved it all over and connected it to the database, however, I'm stuck in a redirect loop whilst trying to view the website. As far as I can gather, the redirect loop is stuck between index.php and install.php

How do I fix this? What would cause a redirect loop?

I read somewhere that there was a redirect file in a tmp directory and removing it will solve the issue, but for me the file doesn't exist.


Solution

  • Due to my own in-experience with Drupal, I failed to recognise that the site in question was a Drupal Multi-site. The sites folder contained 'all' and 'example.com' There was no 'default' folder.

    There was two solutions to my issue.

    1. Set up MAMP as a Virtual Host (so example.com would direct to my mamp installation and so tick all the boxes for the files redirection)
    2. Change the folder name to 'localhost' and not 'example.com'

    The second solution did leave me with one or two issues, but as I'm only needing this installation for the theme I decided a botched solution would be least time consuming.