[pmwiki-users] How to reference the domain name

Randy Brown randy at brownragfilms.com
Wed Apr 22 05:29:28 CDT 2009

>> 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".

Clearly that information is available to the server, because it  
appears as the browser's title. I just don't know how to get it via  
pmwiki markup.


More information about the pmwiki-users mailing list