The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Subdomain-blind redirect

Discussion in 'General Discussion' started by cherish, Apr 3, 2006.

  1. cherish

    cherish Registered

    Joined:
    Apr 2, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Does anyone know a way to redirect a subdomain to another page and keep the subdomain listed at the top of the browser window. Essentially, I don't want my users to see the site they are on, I want them to feel like they are on the same website.

    Any ideas are welcome.:)
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    create an index.html page in the subdomain directory which is a frameset - 1 frame, 100% width 100% height that shows the target URL. If you click a link on the page, the address bar will still show the subdomain.

    Of course a smart person will easily be able to see the URL of the page with properties/page info or view source. If you want to completely hide the destination URL, then you would need to setup some sort of proxy to the destination...
     
  3. cherish

    cherish Registered

    Joined:
    Apr 2, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Perfect.

    Thank you! Thank you! :D
     
Loading...

Share This Page