Hi folks,
We're on Drupal 5.1, on a LAMP server. Our old website was/is on a Windows IIS server. We are trying to implement a phased migration. All the content has been migrated into Drupal, but each group needs to check through their content before we redirect their visitors to the new server. The first group is ready to go -- their content has been checked and updated. I know how to put the redirects into IIS to send visitors to their pages over to the Drupal server.
However, once a visitor is at the Drupal server, they can navigate to a bunch of pages that haven't been checked through yet, belonging to the other groups. I need to catch these visits and send them back to the old server.
For now, I've used Redirect directives in the .htaccess file, and that works. But now the groups which haven't migrated yet can't get to their own pages on the Drupal server to make corrections and updates.
How can I distinguish between anonymous users, which should be automatically redirected between the two sites based on migration status, and authenticated users (or users by IP) which should be allowed to access all the pages on Drupal? General approaches I've thought of (but don't know how to implement):
- Put some kind of if statement around the redirect section of .htaccess so that certain IP address visitors don't get redirected away from Drupal