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
Try this, hope it will work
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php