SharePoint and Firefox - 404 Page Not Found Issue
-
Thursday, February 28, 2008 11:46 PM
Hello all,
I configured a custom error HTML page to handle 404 errors as per this article: http://support.microsoft.com/kb/941329. But I’m seeing some strange behavior when using Firefox to access my site. Please note that the following issues do NOT occur in IE.
1. If I type in a URL such as http://mosssite/unknown.ASPX, then Firefox correctly navigates to my custom HTML page.
2. If I type in a URL such as http://mosssite/unknown, (no extension) then Firefox simply displays the source of my custom HTML page without rendering it.
3. If I type in a URL such as http://mosssite/unknown.jpg, then Firefox displays the text http://mosssite/unknown.jpg on the page. However, if I do a “View Source”, it correctly shows me the source of my custom HTML page.
Has anyone else seen this issue before and resolved it?
Thanks.
Deepak.
All Replies
-
Monday, April 14, 2008 9:20 PMI am having the exact same issue and cannot find any resolve to this anywhere... Frustrating!
-
Monday, April 14, 2008 9:26 PM
I finally figured what was causing this issue. Apparently, whenever I save an HTML file in Visual Studio 2005 with UTF-8 encoding, for some strange reason the following 3 characters are saved at the beginning of the file:

Now these characters are NOT visible in the Visual Studio IDE or if you open the HTML file in Notepad. However, from the command prompt if you type in the following, you will see them:
Type PageNotFound.html
The only way I could get rid of these characters was by opening the HTML file in WordPad and saving it back. After doing this, Firefox correctly rendered my PageNotFound HTML page in all of the 3 scenarios mentioned in my earlier post.
Hope this helps.
- Proposed As Answer by Mr.White[2020] Monday, August 17, 2009 12:58 AM
-
Tuesday, April 15, 2008 4:20 AMThat would be the Byte Order Mark (BOM) which described that it's an UTF encoding you're working with. Unfortunately there is no easy way of seeing it or removing it in Visual Studio. Editors like Notepad++ and PSPad can help you a lot here.
-
Tuesday, April 15, 2008 12:16 PM
Right. As I said, I was able to use WordPad to remove them. It's strange that these characters would mess up FireFox but not IE.
-
Saturday, August 15, 2009 10:40 AMIf we save this ErrorPage.html without the BOM, will this have a huge impact on an existing Web Application?
What I mean is, will it affect the way the Application Redirects in IE Browser?

