---- Rewrite rule to organize files into subfolders
lucy24 - 10:09 pm on Aug 23, 2013 (gmt 0)
You don't need all this:
Get rid of the anchors, the /name/ and all .* You're not capturing the full request; you just need to check whether the forms occur at all.
I forgot that the overall form is /name/blahblah so anywhere I had ^ you instead need / representing the beginning of the part you're testing. And similarly replace $ with \. (literal period) for the end of the test string.
But if you can shift all of this to the php side, you can start by stripping away the /name/ and the .html leaving only your test string.
This probably all belongs in a single thread, but oh well.