Domain Swap 404

Component ID

1388642

Component name

Domain Swap 404

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This little module redirects 404's to another domain, keeping the structure of the url in tact. For example, if a user tries to go to http://www.foo.com/directory/subdirectory on your Drupal site, and that page doesn't exist on your Drupal site, they will be redirected to http://www.bar.com/directory/subdirectory.

You can set different redirects for different url patterns. So users going to http://www.foo.com/pictures/picture1.jpg will be redirected to http://www.bar.com/pictures/picture1.jpg BUT users going to http://www.foo.com/movies/movie1.avi will be redirected to http://www.mymovies.com/movies/movie1.avi.

This module can be particularly useful for a new Drupal site that is being used on a domain that formerly had a traditional file structure. If you move your old site to a new domain, you can redirect traffic to your new Drupal site to the old files without breaking links to your site that might be out there on the interwebs.

Based off of the custom error module