Im trying to avoid to use ~ to enter in a user folder, i read about this and mod_rewrite can allow me this but im trying with differents way but any result is negative until now. creating a .htaccess and /home adding
RewriteRule ^/~([a-zA-Z0-9]+)/$
https://example.com/$1/ [R=301,L] but is not working or adding to httpd.conf is not working either.
Trying to be specific i want to avoid to ask to the user put ~ to access to a folder, i can't have a subdomain or domain per user,
hosting.example.com/user1 avoiding /~user