Use .htaccess for version control

I am developing a website and I want to keep the live and some development codes on the website. I wanted to use htaccess to develop new code and then switch to the new version when I'm done. Is that a stupid idea? and what's wrong with my .htaccess?

So I have directories v1.1 and v1.2 in my web root.
and this is my htaccess file

#########################

RewriteEngine On

RewriteRule ^live/(.*)$     v1.1/$1 (L)
Redirect 301 /live$ http://blah.com/live/

RewriteRule ^debug/(.*)$    v1.2/$1 (L)

# Disable directory browsing
Options All -Indexes

# Deny access to all .htaccess files

order allow,deny
deny from all
satisfy all

I got this working and it allows blah.com/live/ to display the code in version 1.1 and blah.com/debug so I can play with the code in version 1.2.

There are two problems with it:
1. The user sees the word "/ live /" in the URL and can dig …
2. I can't get the htaccess file to redirect blah.com/ to v1.1 /.

I would rather have blah.com/ to go to blah.com/v1.1/
and blah.com/debug/ to go to blah.com/v1.2/

I tried…

RewriteRule ^$     v1.1/ (L)

and

RewriteRule ^(.*)$ v1.1/$1 (L)

but they didn't work … (internal server error).

I had a game with this excellent tool – https://htaccess.madewithlove.be/
– what seems to think that my htaccess file is great (if it obviously isn't)