Adress from adress bar to variable

Discussion in 'PHP' started by Mephone, Nov 13, 2010.

  1. #1
    Hi,

    I have one domain eg. Forwarded.com, which is forwarded with masking to eg Original.com. What I need is script, which will be on Original.com, which will store actual adress from adress bar (in this case Forwarded.com) to php variable.

    Why I need this? I have portfolio of domain names and I want to create landing page, where will be other domains forwarded to, but I want to have each time right domain name on it in lets say title.

    Example:

    User will type in DomainOne.com. DomainOne.com is forwarded to Original.com. In adress bar is still DomainOne.com. Original.com will show "Hello. DomanOne.com is for sale blahblah.."

    User will type in DomainTwo.com. DomainTwo.com is forwarded to Original.com. In adress bar is still DomainTwo.com. Original.com will show "Hello. DomainTwo.com is for sale blahblah.."

    Is this even possible?

    Thanks in advance for your suggestions.

    Adam
     
    Mephone, Nov 13, 2010 IP
  2. d_s

    d_s Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi Adam,

    Hope you would get that by using the 'HTTP_REFERER' in php.

    d_s
     
    d_s, Nov 13, 2010 IP
  3. Mephone

    Mephone Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    @d_s
    Thanks for Your reply. I will definitely try it. I had another idea. There is possibility to set title, keywords and description at godaddy, when mask forwarding and title which I set appears in the browser. Is there any way how to use this title in the webpage directly?
     
    Mephone, Nov 13, 2010 IP