문제

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.

도움이 되었습니까?

해결책 3

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.

다른 팁

Check if your web server has read permissions for settings.php.

Also check if the database is set up properly. As always, drush is your friend.

Sounds like an .htaccess issue, this happens sometimes when you're moving the site from a root path (ie. example.com/) to a subfolder (ie. localhost:8888/drupal/).

Try changing the RewriteBase in the .htaccess file to:

RewriteBase /drupal/

Where drupal is the name of the subfolder Drupal is installed in.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top