Forum Moderators: coopster
domainname/phpscript.php?404;http://domainname/fullpath/to/the/badurl
Has anybody seen this behaviour before? I can't replicate it on my local machine(s) - is it an IIS or PHP issue?
How can it be solved?
TIA
I'm using a 404 page to help generate SEO friendly URLs, and then generate the page from the database. Its the poor mans way of doing it without the luxury of mod_rewrite.
In the past, i've done this in ASP, and the user never sees the 404 page, the browser continues to display the link as clicked on, rather than displaying the error page url. This is the desired behavior.
I've now implemented it in PHP instead, but on my live host, the user sees something like :
404.php?404;http://somehost:port/directory/linkclickedon
in the address bar - really *not* what I want!
I suspect it's down to the inept nature of my hosting provider, but I'd like to be sure - has anybody come across this before (with either PHP or ASP)?
<added>No, register globals aren't on</added>