• Resolved norm2020

    (@norm2020)


    I am trying to remove “en/” from “/en/tag/esl-questions/”. When I a) tick the regex box b) put in regex formula – ^/old/(.*) and to replace it by:/new/$1 – the plugin won’t accept the replace regex saying it is not a page name or external url?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aaron

    (@aaron13100)

    I think you want to do something like redirect from /en/(.*) to /$1 but I’m not sure.

    If so, the URL part is probably correct, like:

    ^/en/(.*)$

    For the destination, the currently released version requires a complete URL to be able to use regular expressions in the destination. eg if your site is https://example.com then

    https://example.com/$1

    That would redirect /en/tag/esl-questions/ to /tag/esl-questions/.

    I’ll add an interface improvement to the next version to make that easier so it’ll just accept relative regular expression destinations. That won’t be out until August sometime though.

    Anyway, if I didn’t correctly guess what you’re trying to do then please send screenshots and clarify.

    thanks

    Thread Starter norm2020

    (@norm2020)

    Tks, 404 Solution requires a “/” before the url which is interfering with the regex which should be ^/es/tag/(.*)$ with redirect mywebsite/tag/$1

    • This reply was modified 2 weeks, 1 day ago by norm2020.
    Plugin Author Aaron

    (@aaron13100)

    I see what you mean. Thanks for clarifying. ^/old/(.*) becomes /^/old/(.*). Thanks for reporting the issue. For the currently released version you’ll have to try it without the leading ^. The fix will be released around August 6th.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.