I am trying to do the following rewrite of tilde URLs:
RewriteRule ^/?~folder/(.*) http://whatever.com/$1 [R=302,L]
I want any links with whatever.com/~folder/something
to become whatever.com/something
.
It seems that the above rewrite rule works if my situation excluded the tilde (also tried escaping it, \~
), but with the tilde it does not perform the rewrite.
Is there a broader configuration setting I need to adjust to enable rewriting in my situation? I understand normally ~folder
refers to a user's home directory, but I don't know how that comes into play or can be adjusted in my situation.