Ability to default redirect with and without query args / parameters?
-
Hi there,
First of all, great plugin – love it!
We’re using the plugin in a WP install with tons of contributors who can’t be relied upon to input accurate regex redirect matches. That said, we do need them to be able to add simple redirects for things like /page-1 -> /page-2. Additionally, we add tracking parameters to many of our URL’s, so we also need the following to work: /page-1?foo=bar -> /page-2?foo-bar.
As mentioned, while the regex functionality built into the plugin could work, we really can’t trust our users to add them on a one-off basis. So, my question is, is there a method by which we can save the basic url match (e.g. “page-1”) to preserve simplicity of editing for our users, but auto-generate a regex match upon the generation of the actual redirect (e.g. in .htaccess)? I’m looking for a filter that would allow us to do this, however the only one I’m seeing is
redirection_create_redirect
, which only works for saving the redirect, and in turn would make editing tough since users would then see all the regex param matching stuff appended. Ideally, I would like to be able to auto-generate the regex match only on actually redirect output. Is that possible?Thanks!
- The topic ‘Ability to default redirect with and without query args / parameters?’ is closed to new replies.