Closed (works as designed)
Project:
Redirect
Version:
7.x-1.0-rc1
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2012 at 14:23 UTC
Updated:
25 Jul 2014 at 22:31 UTC
Jump to comment: Most recent
Comments
Comment #1
jwilson3We're migrating an old custom search system into Drupal views, and were wonder a similar thing:
Would be nifty if the module could handle something like:
oldurl/*/*=>newurl?option1={1}&option2={2}Currently, I'm thinking the only way I think this could be done is in a custom module with a menu callback handler that does the rewrite logic, or done at the server level (eg Apache's mod_rewrite).
Comment #2
jwilson3UPDATE to comment #1:
It looks like the Panels module is capable of handling this functionality, using their "HTTP Response code" variant type with a 301 response code; you can setup arguments eg
myurl/%placeholder1/%placeholder2, load contexts based on those arguments, and then use tokens from the arguments and contexts in the redirect URL. Finally, all this can be exported to code if you want.Very cool indeed.
Comment #3
pere orgaThere is a lot of interest in this feature apparently (I've seen 3 other very similar tickets), but that's very different to what Redirect module is doing. IMHO that's out of the scope of this module, At least for 1.x
I didn't know that Panels can do something like that. Otherwise it could be a good idea for a new contrib module (although things like this could be done in the web server too, e.g. via
.htaccess)Comment #4
pere orgaSee also #1331582: Use tokens for redirects