Getting the URL used to access page

A

Anonymous

Guest
I have a server with multiple URL connected to the same DNS. I have tried using the PHP_SELF and SERVER_NAME but SERVER_NAME only gives me the main URL. How do I detect which URL the user used?

http://www.mystry-design.com
http://www.my5try.com

The test at tyhe top should show the URL (using SERVER_NAME) but it only ever displays http://www.mystry-design.com
 
well, when I accessed http://www.my5try.com/ it said http://www.my5try.com/, and when accessing http://www.mystry-design.com it said http://www.mystry-design.com .

I don't see the problem
 
Back
Top