Regex for simple redirection
-
I am trying to set up a redirection but cannot get the regex right.
I have hundreds of 404’s for URL’s like
/folder/anythinghere
/folder/old-file.php
/folder/not-here/goneAll I want to do is to redirect them to
/folder/
with creating an infinite loop.
I have tried redirecting with /folder/(.*) to /folder/ and several other variations but cannot get this to work without creating a loop.
Does anyone have a simple regex to do this?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Regex for simple redirection’ is closed to new replies.