Both problems has been solved in this version:
http://www.wtmmail.com/XoopsShortUrls/xoops_shorturls.txt3
Also, I made posible to rewrite urls with Within-page links, alas: file.html#forumpost1
Try it and let me know if something else was broken.
People, as I said before, the above file is in a testing process and is not intended to be in a production site. You can try it, but if you find errors, switch to the previous version.