Support » Plugins » Hacks » Can I redirect this: www.foo.com/?page=a_plugin&q=one/two/three&id=3?

  • Resolved geogruven

    (@geogruven)


    A plugin I’m using puts urls in this form into emails:

    http://www.foo.com/?page=a_plugin&q=one/two/three&id=3

    WHen the email recipient clicks on the link it goes to the index page. I want it to go to another page, say:

    http://www.foo.com/a_plugin?q=one/two/three&id=3

    with the very same parameters. Is this a job for add_rewrite_rules()?

    If so, if I add ‘page’ to query_vars with add_filter(), will that break something predefined about ‘page’?

    Is that ‘page’ tag in the original url special in WordPress?

    Basically, I want to take that first query string parameter, page=a_plugin and redirect to whatever the page parameter points to, in this case “a_plugin”.

    Additionally, I can’t modify the URL in the email because the code that generates it can’t be modified.

    Thanks in advance,
    George

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I redirect this: www.foo.com/?page=a_plugin&q=one/two/three&id=3?’ is closed to new replies.