Using mod_rewrite how can I change the current URL format:From: https://example.com/something/NAME-IN-CAPS/phonebook.xmlTo: https://example.com/anything/whatever/phonebook.php?name=NAME-IN-CAPS
APACHE mod_rewrite add query string to URL
apache;301 redirect;mod rewrite;httpd
Just take the following example, and rewrite the words something, anything, and whatever to your actual directory names:RewriteRule something/([-A-Z]+)/phonebook.xml anything/whatever/phonebook.php?name=$1