Viewing 3 replies - 1 through 3 (of 3 total)
  • Try the following as the source URL

    /pdfs/(.*)

    and then the destination as

    http://newsite/

    don’t forget to tick the box that says “regular expression”. The brackets are what is known as a capture group in regular expressions, if you don’t include a $1 then it will simply throw away everything that matches the expression in the brackets

    Thread Starter autumnmist

    (@autumnmist)

    Oh, yeah, I forgot to mention that I tried that as well. (I’m a Perl programmer so I’m familiar with regexes). If I try /pdfs/(.*) and the destination http://newsite/, the entire redirect just fails to trigger and I get a 404 page.

    Thread Starter autumnmist

    (@autumnmist)

    Ah hah! I just got it working.

    If I tried to make the edits to the old (existing) redirection entry, the redirect would fail. If I completely delete the old entry and recreate a new one with the same settings, the redirect works!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Redirection] Regex redirect without adding rest of URL’ is closed to new replies.