WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
[plugin: Redirection] replacement regex? (3 posts)

  1. alchemistGM
    Member
    Posted 3 years ago #

    I've not been able to find an example of the types of regex the redirection plugin uses in the replacement string.

    trying to use one rule in the plugin (not htaccess) to fix a spelling error across 15 URL's, I have regex box turned on, and:
    ^(.*)lonliness(.*)$

    to be replaced by
    $1loneliness$2

    but that fails, giving me results like /experiencing-/loneliness/-during-the-holidays/
    (Note the unwanted added slash before and after loneliness). Does anyone know how to prevent the $1$2 etc from adding a slash whereever I do my backreference?

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

  2. amenadiel
    Member
    Posted 3 years ago #

    try
    /(.*)lonliness(.*)
    to
    /$1loneliness$2

  3. idansh
    Member
    Posted 2 years ago #

    how do I change the URLs to lowercase characters (problem with escaped URLs). I need to pass the URLs to wordpress as lower case instead of uppercase.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic