The script you are using would have to do this for you and I believe it would involve mod_rewrite. If the script supports this then there should be instructions on which entries you need to make it work. If it doesn't support this it is pretty hard to do and involves in depth knowledge of .htaccess and mod_rewrite.
-Corey