// $Id$

/**
 * @file
 * README for domain_redirect.
 */

Domain Redirect
Making permanent redirects for disallowed pages

CONTENTS
--------

1. What does it do?
2. Making it work for search spiders only

----
1. What does it do?
This is a contributed module that sends a permanent redirect if someone tries
to access a page that is not available on the current domain. For it to work
you need to clear the page cache after enabling it.
You can define a domain-setting in wich order domains should be selected when
the node can be redirected to more then one domain.
This module respects the settings of module domain source.

----
2. Making it work for search spiders only
If you choose "Redirect search spiders only" under "Domain/Advanced settings"
you must also override the default cache.inc. The new cache handler turns off
caching for search spiders - but preserves normal drupal behaviour for all
other users.

This is what you have to do:
Open your settings.php and look up your $conf = array() (if you have no such
array - create one).
Add the following line to the array
'cache_inc' => './path/to/module/cache_domain_redirect.inc'

The result probably looks something like this:
$conf = array(
  'site_name' => 'My Drupal site',
  'theme_default' => 'minnelli',
  'anonymous' => 'Visitor',
  'cache_inc' =>
    './sites/all/modules/domain_redirect_cache_domain_redirect.inc',
);

or maybe just:
$conf = array(
  'cache_inc' => './sites/all/modules/domain_redirect/cache_domain_redirect.inc',
);

If you already have a custom cache file the fix is trivial. Just open
cache_domain_redirect.inc and copy line 3-7 from cache_get to the beginning of
your own cache_get.

