I have a part of domain example.com/~mypart
. In that folder is index.html. If I visit example.com/~mypart/something
I get a "Not Found" error.
I want every address with some string after example.com/~mypart/
to rewrite to example.com/~mypart
(index.html) and keep the string so I can use JavaScript in index.html to get that string.