I have url example.com/lt.php/example and want remove .php that will be example.com/lt/example I try with htacces, but I think that\'s impossible
example.com/lt.php/example
example.com/lt/example
This might work:
RewriteRule ^(.+)\.php/(.+)$ $1/$2
The first backreference would capture lt from lt.php and the second backreference would have example and php would be added to it.