• bravewhale

    (@bravewhale)


    I set a redirect of my entire site using /* in the from field. This works fine, and all pages go to the url I want.

    I would like to add an exception. I want one more more pages to be excluded from that entire redirect. Is this possible? I don’t know what to add in the from or to fields to achieve this. Maybe it needs regular expressions? Thanks for your help!

    https://wordpress.org/plugins/safe-redirect-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Taylor Lovett

    (@tlovett1)

    I think you could accomplish that with some regex and a lookahead. Check out some regex guides.

    Thread Starter bravewhale

    (@bravewhale)

    Thanks for the tip. I’m obviously not proficient in writing regex or much at all for .htaccess, but I did a search for the two you mentioned. It’s a bit overwhelming and I’m not clear on what I’ll need to write to setup the exclude redirects as I wanted.

    Would you be able to give me an example of a regex with lookahead that I can add to a new rule using your plugin?

    The reason I hope to achieve all this with the plugin is because it’s for my client who will need to add more of these in the future.

    It looks like I can add a new rule using the plugin by checking the box to write regex, but I just don’t know what to write that says “exclude this one url from the global redirect.”

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude page from blobal redirect’ is closed to new replies.