Well I managed to rewrite localhost/test/index.php to localhost/argim/index.php with this:
RewriteRule ^test/([^/]+) /argim/$1 [L]
Problem here is with paths... the address bar remains with the base localhost/test/, causing all links and images to be broken, because /test/ is not the real path and the browser thinks it is.
If I add [R,L] at the end, I will be redirected to argim/index.php and links are OK, but this is not transparent to the user nor search engines because they'll see the real URL after the redirect, and this should not be allowed. I need to remain showing the original URL such as localhost/test/whatever and let the user thinks it's the real URL instead of a dummy redirect.
Any help is greatly appreciated... I succeeded in solving a problem and creating a new one, as usual.
[edited by: Jakotsu at 2:27 pm (utc) on Mar. 7, 2008]