How to cloak site address in address bar

Discussion in 'Programming' started by bigpapa, Sep 21, 2008.

  1. #1
    I have a hosting account that I do not own a domain for, therefore my address is something like:

    1.2.3.4/~myaccount

    Is there any way of showing something like mysite.com in the address bar when someone accesses 1.2.3.4/~myaccount?

    My idea is that there my be a way either in the .htaccess file, a PHP script, OR the system32/drivers/etc/hosts file on the computer itself.

    Any ideas on how to do this without having to buy a domain name pointing to the IP address????

    Thanks
     
    bigpapa, Sep 21, 2008 IP
  2. MikeLiao

    MikeLiao Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dont think this is possible unless you own the domain.
     
    MikeLiao, Sep 21, 2008 IP
  3. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #3
    Are you able to update the .htaccess file for the subdomain? If so, I believe you can issue a directive that will change the address-- however I am not sure what it is.

    Q...
     
    QiSoftware, Sep 22, 2008 IP