• Hello,

    I’m new to this plugin and have had a few issues using it. For some redirects, it doesn’t work unless I tick the regex option – what exactly is this and when do I need to use it?

    Also, for some reason when I redirect a 404, duplicates still show up in the 404 section making it seem like that page has a 404 error but when I click on the URL it looks fine. Is there a way to fix this?

    Thanks!
    Brendan

Viewing 1 replies (of 1 total)
  • Brendan, a Regular Expression is a way to code conditions and results. For example:
    .* means match one or more of any character. So a URL with abc or def or aa/bb will pass that test.
    (foo\d)(\.html?)? means match the word foo with any digit, like foo1, foo2, etc, and that word may or may not be followed by .htm or .html.
    When a pattern like that is matched, the parts can be used to construct a new URL. So for that last regex, a target like $1 means take whatever was matched in the first part like foo1, foo2, etc, and just use that part without the extension.

    Yes, this is VERY cryptic. IT takes a long time to understand this but if you have any interest in programming you’re going to encounter this over and over and over…

    If you are not prepared to do that kind of stuff then either this plugin isn’t right for you, or you will need to get someone to help with this one concept.

    https://regex101.com/ is a great online resource to enter text and a regex and see if you get a match. If you don’t get a match it explains how it is processing, which should help to understand how to contour it. A good regex created there can be copy/paste into the Source for a Redirection, and creating a Target shouldn’t be difficult after that.

    Any help?

Viewing 1 replies (of 1 total)
  • The topic ‘What is Regex and Duplicate errors’ is closed to new replies.