So I have managed to rewrite urls using the .htaccess file but the redirection messes up the url. For example I try to rewrite this:
localhost/mysite/public_html/class/5/
into this:
localhost/mysite/public_html/index.php?v=class&id=5
and I use the following lines in the .htaccess file:
RewriteRule ^public_html/([A-Za-z]+)/([0-9]+)/?$ ./public_html/index.php?v=$1&id=$2 [L,R]
but the browser redirects me here (I am using wamp on Windows 7):
localhost/C:/wamp/www/mysite/public_html/index.php?v=class&id=5
Which is wrong and gets me a 403 error. What should I do?