WordPress.org

Forums

Redirection
Trying to Figure Out a Redirection Configuration (4 posts)

  1. eiselj
    Member
    Posted 1 year ago #

    This is what I'm getting when I do a search:

    /?post_type=post_type&s=(search item)

    this is what I want:

    /?post_type=&s=(search item)

    What is the code/formula I need to use to make this happen in redirection?

    Thanks!

    http://wordpress.org/plugins/redirection/

  2. jrf
    Member
    Posted 1 year ago #

    Try the following and let me know whether that works:

    Source url:
    ^\/\?post_type=post_type&s=(.+)$

    Target url:
    /?post_type=&s=$1

    Regex box: checked

    Hope this helps ;-)

  3. eiselj
    Member
    Posted 1 year ago #

    Thanks for your help! - Unfortunately, when I tried using it, it didn't seem to work - i don't think the source url is correct, because it isn't getting any hits when I try to use it.

  4. jrf
    Member
    Posted 1 year ago #

    Ok, can you give me some sample source urls ? Then I can see what might need changing.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic