[legacyRender] fix #100 Cool URI expand

- support XOOPS_ROOT_PATH is not server document root
- more flexible
- support PATH_INFO
Merge pull request #101 from XoopsX/coolurl_rule

[legacyRender] fix #100 Cool URI expand