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

  1. francesco.donnarumma
    Posted 2 years 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?


  2. francesco.donnarumma
    Posted 2 years 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

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic