Using mod_rewrite how can I change the current URL format:
- From:
https://example.com/something/NAME-IN-CAPS/phonebook.xml - To:
https://example.com/anything/whatever/phonebook.php?name=NAME-IN-CAPS
Using mod_rewrite how can I change the current URL format:
https://example.com/something/NAME-IN-CAPS/phonebook.xmlhttps://example.com/anything/whatever/phonebook.php?name=NAME-IN-CAPSJust 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