<div class="gmail_quote">On Thu, Apr 23, 2009 at 5:22 PM, Eemeli Aro <span dir="ltr"><<a href="mailto:eemeli@gmail.com">eemeli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/4/22 Randy Brown <<a href="mailto:randy@brownragfilms.com">randy@brownragfilms.com</a>>:<br>
<div class="im">> By "URL masking" I mean I tell my domain registrar to forward<br>
> (selecting frame redirect as opposed to http redirect) to the wiki URL<br>
> destination, specifying the title that I want to appear.<br>
<br>
</div>This means that the server might not have any information about your<br>
masked domain, as it all happens in the browser. However, I can think<br>
of two things to try:<br>
<br>
First, check the value of $_SERVER['HTTP_REFERER'], it might hold your<br>
domain name at least on the first request.<br>
<br>
Second, since the masked domain is seen in your browser, it should be<br>
accessible by JavaScript as top.location.href. Now, in order to get<br>
that info to your server, it's probably easiest to set that value to a<br>
cookie that'll then be passed back to the server, where you can read<br>
it and set the page titles etc. accordingly.<br>
<br clear="all"></blockquote></div><br>You can alos try printing the whole $_SERVER array by:<br>print_r($_SERVER);<br><br>-- <br>Kartik Mohta<br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br>