I don't know why but this htaccess item doesn't work for me.
I have something like this after update user profile public/user_profile/show_user.html?id=4
and I want to have public/user_profile/show_user.html/4
- htaccess
RewriteRule ^show_user.html/(\d+)$ show_user.php?id=$1 [NC,L]
profile.php
After update user -> redirect to user detail
redirect_to(url_for('/user_profile/show_user.html/' . $id));