Re: Question concerning hostnames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



php@2b4ever.net (2b4ever Php) writes:
> I want http://www.pageTwo.com to be redirected to
> http://www.pageOne.com/pageTwoindex.html, without losing the address
> http://www.pageTwo.com.

Maybe something like

  header("location: http://www.pageOne.com/pageTwoindex.html?ref=http://".$_SERVER["HTTP_HOST"].$_SERVER["PHP_SELF";]);

on http://www.pageTwo.com

Then $_GET["ref"] will contain the referers url provided
http://www.pageOne.com/pageTwoindex.html is a PHP file. If you just
want it for logging purposes, the url will still be saved in the
server log (at least if you use apache).


-- 
--Fredrik
In an organization, each person rises to the level of his own
incompetency
		-- The Peter Principle

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux