Currently using Apache 2.4 with SSI Legacy Parser On and trying to use Regex code to obtain the results I am looking for.
<!--#set var="test" value=$REQUEST_URI -->
<!--#echo var="test" -->
The example result I get from the above code is:
/path1/path2/path3/filename.html
/path1/path2/path3/filename.html?id=2019
The example result I would like to get is:
/path1/path2/path3/
Anything after the last forward slash removed regardless of the number of paths there may be.
Is there a regex code or something I could use to do this?