the solution for this will be to add a base tag to the base with a full link using an href parameter.
for example, if you have a URL:
1
and that is a rewrite to:
news.php?post=1
then add a base tag of:
<base href="http://mysite.com/news.php">
just after the opening <head> tag of the page.