First question: Is RewriteBase even necessary if the .htaccess is in a sub directory? For example www.mydomain.com/dev/?
Second question: Is there any way to redirect to the RewriteBase and if I don't need the RewriteBase how could I make it redirect to the root where the current .htaccess is?
This is to say I have:
RewriteRule ^code/$ / [R=301,L]
I would want something like this
RewriteRule ^code/$ RewriteBase [R=301,L]
This is due to the need to change multiple items in the .htaccess when I'm deploying from dev to the live.
Third question: Without the RewriteBase would relative rules still work?
RewriteRule ^code/(.*)$ code/new/$1 [R=301,L]
Thanks in advance!