WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. eiselj
    Member
    Posted 9 months 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 9 months 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 9 months 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 9 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic