Hi there,
We're going to be slapping a Drupal site on a domain that formerly had a traditional file system on it (i.e. http://www.oursite.com/documents/mydoc.docx pointed to a mydoc.docx file in a real documents folder in the web rot). In order to upgrade our site to drupal and to keep all sorts of links from breaking, we'd like drupal to redirect users from http://www.oursite.com/documents/mydoc.docx to http://old.oursite.com/documents/mydoc.docx or somethng like it.
Essentially, we want to swap domains with urls that return 404 on drupal to another domain, where our old site will still be up and running. With customerror the redirects take a regexp for the source, but any url that matches the regexp redirects to a single destination. We have thousands of files under the old site...so we'd have to make a line in the redirects text box for each of them yes?
Anyway, I took apart your module and remixed it to create a custom one for our purposes that did the domain swapping. I wanted to let you know I've done it and offer the idea as a feature in the future. I'd be happy to help out if you wanted to add it. The source of our module is attached.
Cheers,
Mike
| Comment | File | Size | Author |
|---|---|---|---|
| domain_swap_404.zip | 1.74 KB | mkadin |
Comments
Comment #1
gisleNeat idea. However 1) I do not think this will be a much requested feature; and 2) most people will probably use Apache modRewrite for this anyway.
As co-maintainer, I've been told to be careful not to add complexity. The module need to remain slim and simple, so we need to be careful about features we add. So this feature will not be added.