Regex Wildcard Source Is Being Passed to Redirect Even Without $1in Target
-
I have setup this simple regex redirect with wildcard:
^/for-people-with-disabilities/*
The target does NOT have $1 because I want all previous articles that were in that category to now direct to a single page:
Target:
/learning-information/online-information-hub/
Example URL:
/for-people-with-disabilities/help-transport-costs/
Expected outcome: It should redirect to
/learning-information/online-information-hub/
Actual outcome: It is redirecting to:
/learning-information/online-information-hub/help-transport-costs/
Which then gives the user a 404 error.So it is acting like I have inserted $1 onto the end of the target, even though I haven’t.
Any idea what might be causing this?
Host information: I’m using Cloudways hosting. (Thought I’d mention it just in case it is relevant).
- The topic ‘Regex Wildcard Source Is Being Passed to Redirect Even Without $1in Target’ is closed to new replies.