Hello and welcome to our community! Is this your first visit?
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
    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. #2
    Join Date
    May 2002
    Hayward, CA
    Thanked 24 Times in 22 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, ES7-Membrane project (Github Pages site)
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary


Posting Permissions

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