Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Custom 404 pages

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  OE- coding - opportunity to become zillionaire  
Author Message
Travis Megee

External


Since: Feb 01, 2008
Posts: 4



(Msg. 1) Posted: Fri Feb 01, 2008 10:41 pm
Post subject: Custom 404 pages
Archived from groups: microsoft>public>inetserver>iis (more info?)

I've been having trouble defining custom 404 pages. It seems sometimes it
displays the style sheet associated with the error, other times it doesn't.
Like if I enter http://example.com/asdasdasd it shows the styles, but if I
do http://example.com/asdasd.html it wont. Any ideas?
Thanks
Travis

 >> Stay informed about: Custom 404 pages 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 2) Posted: Sat Feb 02, 2008 10:04 am
Post subject: Re: Custom 404 pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

a) How did you setup your custom 404 page in IIS?

b) How does your custom 404 page reference your CSS stylesheet?

c) What does your IIS logfile show?

Depending on the type of file requested, IIS either (a) just sends the 404
page or (b) sends a redirect to the client to cause it to request the 404
page. It is up to the client to then request all subsequent resources (e.g.
image files, CSS files etc) that the 404 page request. Looking at how you
have setup your 404 page, and what (if any) requests the client is making
for these additional resources will help us sort out the situation.

Cheers
Ken


"Travis Megee" <twmcn6.RemoveThis@mst.edu> wrote in message
news:C3C950A1.3CCD%twmcn6@mst.edu...
> I've been having trouble defining custom 404 pages. It seems sometimes it
> displays the style sheet associated with the error, other times it
> doesn't.
> Like if I enter http://example.com/asdasdasd it shows the styles, but if I
> do http://example.com/asdasd.html it wont. Any ideas?
> Thanks
> Travis
>

 >> Stay informed about: Custom 404 pages 
Back to top
Login to vote
Travis Megee

External


Since: Feb 01, 2008
Posts: 4



(Msg. 3) Posted: Tue Feb 05, 2008 6:53 pm
Post subject: Re: Custom 404 pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I referenced to my 404 page by url "/404.php". I first tried having an
external style sheet but when that didn't work, I made added it to the 404
page itself. Here's what my log shows:

2008-02-06 00:50:06 W3SVC434246222 255.255.255.255 GET /adffsasd - 80 -
255.255.255.255
Mozilla/5.0+(Macintosh;+U;+PPC+Mac+OS+X+Mach-O;+en-US;+rv:1.8.1.11)+Gecko/20
071127+Firefox/2.0.0.11 200 0 2

Travis

On 2/2/08 6:49 AM, in article ODC2JoZZIHA.208 RemoveThis @TK2MSFTNGP02.phx.gbl, "Ken
Schaefer" <kenREMOVE RemoveThis @THISadOpenStatic.com> wrote:

> a) How did you setup your custom 404 page in IIS?
>
> b) How does your custom 404 page reference your CSS stylesheet?
>
> c) What does your IIS logfile show?
>
> Depending on the type of file requested, IIS either (a) just sends the 404
> page or (b) sends a redirect to the client to cause it to request the 404
> page. It is up to the client to then request all subsequent resources (e.g.
> image files, CSS files etc) that the 404 page request. Looking at how you
> have setup your 404 page, and what (if any) requests the client is making
> for these additional resources will help us sort out the situation.
>
> Cheers
> Ken
>
>
> "Travis Megee" <twmcn6 RemoveThis @mst.edu> wrote in message
> news:C3C950A1.3CCD%twmcn6@mst.edu...
>> I've been having trouble defining custom 404 pages. It seems sometimes it
>> displays the style sheet associated with the error, other times it
>> doesn't.
>> Like if I enter http://example.com/asdasdasd it shows the styles, but if I
>> do http://example.com/asdasd.html it wont. Any ideas?
>> Thanks
>> Travis
>>
>
 >> Stay informed about: Custom 404 pages 
Back to top
Login to vote
kenremove

External


Since: Aug 23, 2003
Posts: 3041



(Msg. 4) Posted: Tue Feb 05, 2008 9:04 pm
Post subject: Re: Custom 404 pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

That shows that the default page for the folder /adffsasd was successfully
requested (200 OK status). Is your 404.php file being shown to the client?

Can you look in the HTML source of the page that is displayed to the client,
and verify your CSS is correct?

Cheers
Ken

"Travis Megee" <twmcn6 RemoveThis @mst.edu> wrote in message
news:C3CE6110.3EF1%twmcn6@mst.edu...
>
> I referenced to my 404 page by url "/404.php". I first tried having an
> external style sheet but when that didn't work, I made added it to the 404
> page itself. Here's what my log shows:
>
> 2008-02-06 00:50:06 W3SVC434246222 255.255.255.255 GET /adffsasd - 80 -
> 255.255.255.255
> Mozilla/5.0+(Macintosh;+U;+PPC+Mac+OS+X+Mach-O;+en-US;+rv:1.8.1.11)+Gecko/20
> 071127+Firefox/2.0.0.11 200 0 2
>
> Travis
>
> On 2/2/08 6:49 AM, in article ODC2JoZZIHA.208 RemoveThis @TK2MSFTNGP02.phx.gbl, "Ken
> Schaefer" <kenREMOVE RemoveThis @THISadOpenStatic.com> wrote:
>
>> a) How did you setup your custom 404 page in IIS?
>>
>> b) How does your custom 404 page reference your CSS stylesheet?
>>
>> c) What does your IIS logfile show?
>>
>> Depending on the type of file requested, IIS either (a) just sends the
>> 404
>> page or (b) sends a redirect to the client to cause it to request the 404
>> page. It is up to the client to then request all subsequent resources
>> (e.g.
>> image files, CSS files etc) that the 404 page request. Looking at how you
>> have setup your 404 page, and what (if any) requests the client is making
>> for these additional resources will help us sort out the situation.
>>
>> Cheers
>> Ken
>>
>>
>> "Travis Megee" <twmcn6 RemoveThis @mst.edu> wrote in message
>> news:C3C950A1.3CCD%twmcn6@mst.edu...
>>> I've been having trouble defining custom 404 pages. It seems sometimes
>>> it
>>> displays the style sheet associated with the error, other times it
>>> doesn't.
>>> Like if I enter http://example.com/asdasdasd it shows the styles, but if
>>> I
>>> do http://example.com/asdasd.html it wont. Any ideas?
>>> Thanks
>>> Travis
>>>
>>
>
 >> Stay informed about: Custom 404 pages 
Back to top
Login to vote
Travis Megee

External


Since: Feb 01, 2008
Posts: 4



(Msg. 5) Posted: Tue Feb 05, 2008 9:04 pm
Post subject: Re: Custom 404 pages [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, my CSS is correct since it is the same that I use for the main pages.
Also, if I enter http://example.com/asdasd it will display the styles
correctly but if I enter http://example.com/asdasd/ it will not.

Travis


On 2/5/08 7:08 PM, in article u$Ww#yFaIHA.1164@TK2MSFTNGP02.phx.gbl, "Ken
Schaefer" <kenREMOVE DeleteThis @THISadOpenStatic.com> wrote:

> Hi,
>
> That shows that the default page for the folder /adffsasd was successfully
> requested (200 OK status). Is your 404.php file being shown to the client?
>
> Can you look in the HTML source of the page that is displayed to the client,
> and verify your CSS is correct?
>
> Cheers
> Ken
>
> "Travis Megee" <twmcn6 DeleteThis @mst.edu> wrote in message
> news:C3CE6110.3EF1%twmcn6@mst.edu...
>>
>> I referenced to my 404 page by url "/404.php". I first tried having an
>> external style sheet but when that didn't work, I made added it to the 404
>> page itself. Here's what my log shows:
>>
>> 2008-02-06 00:50:06 W3SVC434246222 255.255.255.255 GET /adffsasd - 80 -
>> 255.255.255.255
>> Mozilla/5.0+(Macintosh;+U;+PPC+Mac+OS+X+Mach-O;+en-US;+rv:1.8.1.11)+Gecko/20
>> 071127+Firefox/2.0.0.11 200 0 2
>>
>> Travis
>>
>> On 2/2/08 6:49 AM, in article ODC2JoZZIHA.208 DeleteThis @TK2MSFTNGP02.phx.gbl, "Ken
>> Schaefer" <kenREMOVE DeleteThis @THISadOpenStatic.com> wrote:
>>
>>> a) How did you setup your custom 404 page in IIS?
>>>
>>> b) How does your custom 404 page reference your CSS stylesheet?
>>>
>>> c) What does your IIS logfile show?
>>>
>>> Depending on the type of file requested, IIS either (a) just sends the
>>> 404
>>> page or (b) sends a redirect to the client to cause it to request the 404
>>> page. It is up to the client to then request all subsequent resources
>>> (e.g.
>>> image files, CSS files etc) that the 404 page request. Looking at how you
>>> have setup your 404 page, and what (if any) requests the client is making
>>> for these additional resources will help us sort out the situation.
>>>
>>> Cheers
>>> Ken
>>>
>>>
>>> "Travis Megee" <twmcn6 DeleteThis @mst.edu> wrote in message
>>> news:C3C950A1.3CCD%twmcn6@mst.edu...
>>>> I've been having trouble defining custom 404 pages. It seems sometimes
>>>> it
>>>> displays the style sheet associated with the error, other times it
>>>> doesn't.
>>>> Like if I enter http://example.com/asdasdasd it shows the styles, but if
>>>> I
>>>> do http://example.com/asdasd.html it wont. Any ideas?
>>>> Thanks
>>>> Travis
>>>>
>>>
>>
>
 >> Stay informed about: Custom 404 pages 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]