urlrouter
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
Maintain a list of source and destination URL's for which redirects (301 or 302) will be performed. Source URL is absolute, destination URL may be a path, or another absolute URL.
Source-destination URL pairs are stored in the variable urlrouter_array as an associative array. The actual redirect takes place in hook_boot(), so that URL routing takes place as quickly as possible.
This module will prove most useful during development of a site, for which a number of "legacy URL's" exist on one or more subdomains or domains, which will not change, but that need to be sent to new URL's. It may also prove useful as a more convenient method of creating "vanity URL's" for marketing purposes, as an alternative to editing .htaccess or virtualhost configuration.
Since redirection occurs in hook_boot(), not in hook_url_inbound_alter(), and before hook_init(), it may co-exist with Redirect, Global Redirect or other modules performing 302's and 301's.
Development sponsored by O3 World.
