.htaccess file:
RewriteEngine On
RewriteRule main/(.*).html http://www.my_site.com/index.php?$1
It is supposed to redirect urls like [url]http://www.my_site.com/main/var/var2.html[/url] etc to
[url]http://www.my_site.com/index.php?var/var2[/url] etc. And it does it pretty good with one exception: I can see a new (real) url instead of that fake with .html. In other words, after I go to [url]http://www.my_site.com/main/var/var2.html[/url] the url in adress bar immediately changes to actual url [url]http://www.my_site.com/index.php?var/var2[/url]. I need to prevent this, I need to show only those .html urls.
Note, this happens only when I upload files to server (Linux, apache2). On localhost (Windows XP, apache2 too) the same .htaccess file works good and doesn't reveal real url.
I have no access to server's apache config file, but I'm pretty sure I changed nothing but few basics in my localhost apache config.
I've read a bit about rewriteRule flags but found nothing like that :/