404 response on redirecting the sharepoint default.aspx page
I am facing one issue, www.xyz.com,www.zyx.com is are some of the urls we try to access, while
www.board.com/dxver/default.aspx,www.board.com/zxver/default.aspx is the actual site, but we need to present over internet as
www.xyz.com/dxver/default.aspx,
www.zyx.com/zxver/default.aspx are these url direction details are configured in a sharepoint list and global.asax is coded to retrieve the information. Alternate Access mapping is not used here.
Problem is as follows : when we try
www.board.com/zxver/default.aspx rendering the page as it should and internal page navigations also working. But when we try to access
www.zyx.com it throws http 404 not found error.
Fiddler capture gives us the following :
GET / HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; MS-RTC EA 2)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive
Host: www.zyx.com
HTTP/1.0 302 Moved Temporarily
Date: Wed, 30 Jun 2010 17:36:29 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Location: http://www.zyx.com/zxver/default.aspx
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 162
X-Cache: MISS from localhost.localdomain
X-Cache-Lookup: MISS from localhost.localdomain:8080
Via: 1.0 localhost.localdomain:8080 (squid/2.6.STABLE6)
Proxy-Connection: keep-alive
------------------------------------------------------------------
GET /zxver/default.aspx HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; MS-RTC EA 2)
Accept-Encoding: gzip, deflate
Proxy-Connection: Keep-Alive
Host: www.zyx.com
HTTP/1.0 404 Not Found
Date: Wed, 30 Jun 2010 17:36:29 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 13
X-Cache: MISS from localhost.localdomain
X-Cache-Lookup: MISS from localhost.localdomain:8080
Via: 1.0 localhost.localdomain:8080 (squid/2.6.STABLE6)
Proxy-Connection: close
------------------------------------------------------------------
This shows that the redirect code in global.asax is working, but could not get what causes the error.
Please help.
Vasudev S.
July 1st, 2010 8:09pm
We need a littl;e more information... What are you redirecting from and to: I have included as an example a redirect from fiddler below for ferrari.com.. Where the redirect is From
http://www.ferrari.com/English/Scuderia To
http://www.ferrari.com/English/Scuderia/Pages/Racing.aspx.
It would appear that you should be using DNS to Point to the outside IP Address of http://www.board
, HostHeaders, and AAM
Request 1:
Action: GET
Url: http://www.ferrari.com/English/Scuderia
Host: www.ferrari.com
Result code: 301
Transaction time: 0.437 seconds
Time to first byte: 0.233 seconds
Document: 1
Socket: 1
Request size (out): 1074 Bytes
Response size (in): 307 Bytes
Request Object Size (out): 0 Bytes
Response Object Size (in): 0 Bytes
Response Object Size (bodylen): 0 Bytes
Request Headers:
GET /English/Scuderia HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
application/x-shockwave-flash, */*
Referer: http://www.ferrari.com/English/GT_Sport%20Cars/Pages/Carslanding.aspx
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GIS IE 6.0 Build 20080321; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM
8; PTST 2.221)
Accept-Encoding: gzip, deflate
Host: www.ferrari.com
Connection: Keep-Alive
Cookie: ISAWPLB{9A31B0A2-06FF-4769-AC61-924F7AC29872}={10C1EC17-174D-487F-AB03-D408E80CC80E}; FW_defaultLanguageUrl=/English/Pages/Home.aspx; __utma=157168684.1509449653.1273410385.1273410385.1273410385.1; __utmb=157168684.5.10.1273410385;
__utmc=157168684; __utmz=157168684.1273410385.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Response Headers:
HTTP/1.1 301 Moved Permanently
Connection: Keep-Alive
Content-Length: 0
Date: Sun, 09 May 2010 13:11:07 GMT
Location: http://www.ferrari.com/English/Scuderia/Pages/Racing.aspx
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-NLB-Node: WEB2PRO
X-AspNet-Version: 2.0.50727
Cache-Control: private
-Ivan
Ivan Sanders My LinkedIn Profile,
My Blog,
@iasanders.
Free Windows Admin Tool Kit Click here and download it now
July 2nd, 2010 4:44pm