/*/settings/ to redirect to another page. (regex enabled)
However, I have a page with /settings/notifications and I didn’t want the redirect to apply to it as well. And the redirect is working for her. What do I do?
The are examples of regular expressions at the bottom of the page, along with references to guides and tools you can use.
You will note in the examples that * is never on its own, and is usually something like .*. If you have a valid expression it may not match the other URL anyway.
But I think it has no options for me, I wanted some character that would make the regex only stick to /settings/ so my other URLs with /settings/notifications wouldn’t redirect. I tried /.*/settings/ but it didn’t work either…
/(.*)/settings/ is it a regular expression? Because it really redirects /username/settings well, the problem is that it is also valid for /settings/notifications/, is it an error on my server?
it didn’t, redirected to /my-account/notifications/ (this page doesn’t exist), the normal redirect was my-account and this happened when I tried /settings/notifications.
Yes. The information you sent is for another URL that hasn’t been mentioned before and isn’t /settings/notifications. I don’t know what you are trying to do, and it seems to keep changing.
I would suggest that you list out all the conditions that you are trying to match and not match and then use https://regex101.com to see how they match. That website will tell you why they match and you can then modify the expression. When you have something that’s a bit nearer I can provide some advice.