Hello, This is original url. mydomain.com/who/name/peter.php I want to short like this mydomain.com/who/peter.html this is what i have and is NOT working RewriteRule who/peter.html /who/name/peter.php Thanks
Try: RewriteRule ^who/*.html ^who/name/$1.php That should in theory work, and as long as the new urls are the exact same name (just not the extension) as before, you will be able to do more than one with one rule. You should probably also have a permanent redirect or something along those lines on the end, but that's another consideration