mod_rewrite, need help

I have nexh .htacces file


RewriteEngine On
RewriteRule ^(.*)\\.(php|html)$ index.php?url=$1 [NC,QSA,L]

and this is working, I can get my $_GET[‘url’]

Now I have links like www.site.com/page/page/page/index.php and with .htacces
I have from GET -> page/page/page/index and this is good

but I need to have in browser same links
I need to send link to browser permanently
and it should be:

www.site.com/page/page/page/index.html

example
if user request link

www.site.com/page/page/page/something

or

www.site.com/page/page/page/something.php

in browser it should get

www.site.com/page/page/page/something.html

miro,

It sounds like what you’re asking for is the R=301 flag which will change the URL to that to which you redirected.

BTW, don’t you think (.*).php will match your index.php in the redirection. Ah, another case of improper use of the :kaioken: EVERYTHING :kaioken: atom.

Regards,

DK