[pmwiki-users] How to reference the domain name

Kartik Mohta kartikmohta at gmail.com
Wed Apr 22 06:29:12 CDT 2009


On Wed, Apr 22, 2009 at 3:59 PM, Randy Brown <randy at brownragfilms.com>wrote:

> >> Have you checked $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME']?
>
> Thanks for the suggestion. Unfortunately, that didn't work.
>
> When the user goes to either "domain1.com" or "domain2.com" he or she
> is redirected (with URL masking) to "pmwikihost.com". Instead of
> returning "domain1.com" or "domain2.com", those two variables return
> "pmwikihost.com". But I want the domain name that the user typed  -
> for example, "domain1.com".


How is the "URL masking" done?

-- 
Kartik Mohta
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090422/619b4430/attachment.html 


More information about the pmwiki-users mailing list