I’m just starting out with .htaccess and ive been struck what is probably a really basic problem.
I have the .htaccess file in the site directory (the same level as that site’s index file) and just to make sure i could do the right thing I wrote this thing I wrote
RewriteRule ^(.*)w/$ $1v/ [R]
thinking it will take “http://www.example.com/w/” and go to “http://www.example.com/v/” It actually goes to “http://www.example.com/home/~user/www.example.com/v/”
which is not what I expected at all.
is there something wrong with the basic ideas of my regex? do i need more in my .htaccess file? is its placement wrong?
Thanks in advance for your assistance.