I'm struggling to find out how to perform the following redirection via .htaccess
and it's driving me a bit crazy.
Scenario:
If requests points to one of the following paths, do not perform any redirection:
/
/#/
/#/admin
/#/auth
Otherwise, point the requests to /viewer
and preserve any provided parameters.
Example:
example.com/
should not be redirected.example.com/#/admin/
should not be redirected.example.com/#/Qsj7jw
should be redirected toexample.com/viewer/Qsj7jw
.