Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Redirecting A Requested Website To A Different One.

    What I'm trying to do sounds pretty simple but I don't think it is. When you try to enter a website (for example google.com) instead of opening the actual site (google.com) it would open up another site or any other html code. And can this be done for an entire local area network (not just one computer)? I've been searching for quite a while now and I really want to know how to do it so, if anyone knows please share your knowledge.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    I think you want one of the HTTP 300 series of response codes. HTTP 302 is a temporary redirect, for example.

    Basically, a 302 tells the web browser that the page lives at another address, and what that address is. The browser does the redirect for you.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •