PHP redirect

agusgriego

Partially Insane
Hi, I've got some problems with redirecting to another page with PHP.

I'm using the function 'header("Location:NEWURL");' to redirect a page to another but my problem is that, for example, if the redirect page is called 'redirect.php', and I'm redirecting to 'directory/index.php', this page is loaded under 'redirect.php'. With this, I get all the images in 'directory/index.php' not to appear, because their path is relative (I know I can set it absolute, but that's not the point.).

With ASP, I can issue a response.redirect("newwurl") and get the result I want, but not with PHP.

Any ideas how to solve this?

Thanx in advance,
 
Back
Top