WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
What manner of regex be this? (1 post)

  1. surfimp
    Member
    Posted 1 year ago #

    I'm a little confused at the way Redirection has implemented regex.

    I would like to redirect a URL:
    http://www.example.com/redirect

    I also have a tag using the same term:
    http://www.example.com/tag/redirect

    In Redirection, if I setup the following redirect:
    Source URL: /redirect
    Target URL: /some/other/page

    ..the result will be that /redirect gets properly sent to /some/other/page - but, requests for /tag/redirect will get sent to http://www.example.com/taghttp://www.example.com/some/other/page

    Ooops!

    So I try various regex:
    /redirect$
    ^/redirect$
    ^redirect$

    All give the same result: http://www.example.com/tag/redirect gets incorrectly redirected when in fact I only want to target /redirect

    What gives? Can someone shed some light on the way that regex has been implemented by Redirection?

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic