I know that, but a.php doesn't really do much other than include(b.php). By using header() in b.php, wouldn't I be redirecting to a different site, thus relative links don't matter anymore?
Anyway, I have included codes for a.php and b.php below:
a.php:
<?php
$processed2 = explode('/', $_SERVER['REQUEST_URI']);
include("http://www.website.com/b.php?t=" . $processed2[count($processed2)-1]);
?>
b.php:
<?php
//bunch of database connection stuff.
if($totalRows_rs_linklist > 0){
header("Location: " . $row_rs_linklist['originalURL']);
}
?>
The redirect works, but the formatting is all messed up.
Please see this page for an example of what I am talking about:
http://www.lanthema.com/go/to/ppp
Original Site: http://easywatercar.com/2books.htm
If you compare the redirect site from the above URL to the original site, you will see what I mean.
Thanks,
Eric