Is there a module for Drupal that would allow me to perform redirects based on parts of the URL?
For example, if the URL contains this-string-to-redirect, e.g. example.com/this-string-to-redirect/node/content, then redirect to another path.
|show 1 more comment|
If you want to do this yourself, quick and dirty, it would be something like this:
You might also want/need to throw in a weight of -1 to make sure your module runs early by putting:
in yourmodule.install but a quick look just now shows globalredirect's weight at the default of 0 so this may be unneeded.