Replace middle part of URL
-
Hi,
We have a dynamic URL that is made up of the users username, https://test.learning.necsu.nhs.uk/members/MEMBERUSERNAME/events/
I want to create a redirect that will successfully redirect https://test.learning.necsu.nhs.uk/members/MEMBERUSERNAME/events/, but will allow https://test.learning.necsu.nhs.uk/members/MEMBERUSERNAME/events/attending/ to be reached successfully.
I can’t work out what to replace MEMBERUSERNAME with to redirect the first URL but let users hit the 2nd URL.
I’ve tried ^/members/.*/events/ but that didn’t work.
It needs work at all times, not just when people are logged into the site.
Hope someone can help.
Thanks.
The page I need help with: [log in to see the link]
- The topic ‘Replace middle part of URL’ is closed to new replies.