stcheng
Fri Apr 04 01:02:37 CDT 2008
Hi Betty,
Really glad that it works for you.
Have a nice launch day!
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?YzY3NjIyOA==?= <betty@newsgroup.nospam>
>References: <DBB06639-02B5-487F-9485-F34C660EDD78@microsoft.com>
<j$V2LfWlIHA.4932@TK2MSFTNGHUB02.phx.gbl>
<Xns9A759F1F66D1Feejj99@194.109.133.242>
>Subject: RE: custom 404 page works in IE but not firefox
>Date: Thu, 3 Apr 2008 22:49:00 -0700
>thanks Evertjan and Steven.
>I got it. It seems that on error resume next really messed up something.
>that's really a big from you guys and because of my predefined launch day
>tomorrow.
>
>:=) thanks thanks.
>--
>Betty
>
>
>"Evertjan." wrote:
>
>> Steven Cheng [MSFT] wrote on 03 apr 2008 in
>> microsoft.public.inetserver.asp.general:
>>
>> > ============
>> > x = replace(qstr, "404;
http://www.mydomain.com:80","")
>> > x = replace(x,".htm",".asp")
>> > Response.Status="301 Moved Permanently"
>> > Response.AddHeader "Location", x
>> > ============
>> >
>>
>> But what would happen, Steven,
>> if I requested a nonexisting page?
>>
>> An infinite loop? No nornmal 404 warning?
>>
>> Try this:
>> [Nonexisting .asp versions wil be flagged,
>> in the second redirect to the 404.asp]
>>
>> ============
>>
>> if lcase(right(qstr,4) = ".htm" then
>> x = replace(qstr, "404;
http://www.mydomain.com:80","")
>> x = replace(x,".htm",".asp")
>> Response.Status="301 Moved Permanently"
>> Response.AddHeader "Location", x
>> Response.End
>> end if
>> %>
>> This is the 404 page.
>> <br>
>> We are so sorry for you.
>> <br>
>> The requested page <%=qstr%> does not exist.
>>
>> ============
>>
>> Even then the acting on the default file of the root
>> and other directories should be considered and changed.
>>
>> --
>> Evertjan.
>> The Netherlands.
>> (Please change the x'es to dots in my emailaddress)
>>
>