• Resolved ttremain

    (@ttremain)


    Hard to explain why I did this, but it’s temporary redirect of a entire domain, using a wp Multi-site.

    Anyway, a regex match of .* is supposed to redirect to https://somedomain.com, and the target ends up being https://somedomain.comhttp//somedomain.com

    I’ve traced this back to models/match.php
    in the method: get_target_regex_url()
    line: return preg_replace( '@'.str_replace( '@', '\\@', $matched_url ).'@', $target, $url );

    As a temporary workaround, I’ve added:

    
    if ( $matched_url == '.*' ) {
     return $target;
    }
    
Viewing 1 replies (of 1 total)
  • Plugin Author John Godley

    (@johnny5)

    I’m not sure what you are trying to do or how you have it configured. Can you include a screenshot maybe?

Viewing 1 replies (of 1 total)
  • The topic ‘regex match of .* causes incorrect target URL’ is closed to new replies.