Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-04-2012, 08:17 PM   PM User | #1
Bal0rCIM
New to the CF scene

 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Bal0rCIM is an unknown quantity at this point
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.
Bal0rCIM is offline   Reply With Quote
Old 10-06-2012, 03:56 PM   PM User | #2
Alex Vincent
Moderator


 
Join Date: May 2002
Location: Hayward, CA
Posts: 1,428
Thanks: 1
Thanked 19 Times in 17 Posts
Alex Vincent is on a distinguished road
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
Alex Vincent is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:26 AM.


Advertisement
Log in to turn off these ads.