WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
[resolved] Querystrings on pass-through with regex to Page (2 posts)

  1. francesco.donnarumma
    Member
    Posted 1 year ago #

    I was having trouble doing a pass-throughto a 'Page' with querystring values using regex, where 'Page' is the name of a page I configured in WordPress, that contains php code.

    Here's the scenario:

    • Hosting on Aruba.it
    • Redirection 2.2.13
    • WordPress 3.5.1

    match : pass-through
    action : url
    regex : ^/espositori/([a-zA-Z0-9_.\\-]+)/?$
    target : /espositori/scheda-espositore?espositore_slug=$1

    request : /espositori/al-molino-della-luna
    final URI : /espositori/scheda-espositore/?espositore_slug=al-molino-della-luna

    How can I remove the questystring parameters from the final URI?

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

  2. francesco.donnarumma
    Member
    Posted 1 year ago #

    You MUST put a trailing slash at the end of the target URL...

    target : /espositori/scheda-espositore/?espositore_slug=$1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic