Maybe I’m attempting to do something that isn’t possible, or I’m missing something completely obvious.
What I want to do is rewrite the following:
^/report/user?(.*)$ ./report/user.php?userid=$1 [L,NC]
I have tried escaping the ? using /\? however that throws and internal server error.
Is there any way to achieve this?
Maybe you might try:
If your user IDs are alphanumeric, then just change the last part in the
RewriteCondto([0-9a-zA-Z]+)