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 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:

if user request link


in browser it should get


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.