Also wenn ich www.posshop.at eingebe, komme ich auch auf www.bonit.at.
hier findet eine 'umleitung' statt. der browser macht in wirklichkeit 2 requests.
der 1. geht auf www.posshop.at. als antwort bekommt der browser eine umleitungsanforderung (location) auf www.bonit.at.
mit dem 2. request lädt der browser dann die www.posshop.at.
gut testen läßt sich das mit rex swains http viewer:
Rex Swain's HTTP Viewer
http://www.rexswain.com/httpview.html
Parameters:
URL = http://www.posshop.at
UAG = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
AEN =
FMT = AUTO
REQ = GET
Sending request:
GET / HTTP/1.0
Host: www.posshop.at
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
• Finding host IP address...
• Finding TCP protocol...
• Binding to local socket...
• Connecting to host...
• Sending request...
• Receiving response...
Total bytes received = 195
Elapsed time so far: 0 seconds
Header (Length = 195):
HTTP/1.1·302·Found(CR)
(LF)
Date:·Wed,·27·Oct·2004·13:49:40·GMT(CR)
(LF)
Server:·Apache(CR)
(LF)
X-Powered-By:·PHP/4.3.8(CR)
(LF)
Location:·http://www.bonit.at/(CR)
(LF)
Content-Length:·0(CR)
(LF)
Connection:·close(CR)
(LF)
Content-Type:·text/html(CR)
(LF)
(CR)
(LF)
Content (Length = 0):
Done
Elapsed time so far: 0 seconds
--------------------------------------------------------------------------------
The Location: line in the header above would redirect your browser to a new URL:
Location 2
Parameters:
URL = http://www.bonit.at/
UAG = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
AEN =
FMT = TXT
REQ = GET
Sending request:
GET / HTTP/1.0
Host: www.bonit.at
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
• Finding host IP address...
• Finding TCP protocol...
• Binding to local socket...
• Connecting to host...
• Sending
usw.
daher kannst du am client nicht mehr feststellen, ob eine umleitung stattgefunden hat.
was du möchtest, läßt sich nur durch entsprechende einträge im dns erreichen.