Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin CSS Style Overwritten by HTTP Error 404 Page.Skin CSS Style Overwritten by HTTP Error 404 Page.
Previous
 
Next
New Post
9/22/2007 5:44 PM
 

Hello, all.

I have a CSS problem that only appears in Safari and Opera.  Firefox and IE do not have this problem.

My web site uses a custom skin that includes a CSS called skin.css.  Skin.css contains styles for hyperlinks.

As with most asp servers, the server generates an "HTTP Error 404 Page" when an incorrect URL is entered.  The 404 page generated by the server hosting my web site is shown below:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>The page cannot be found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<STYLE type="text/css">
  BODY { font: 8pt/12pt verdana }
  H1 { font: 13pt/15pt verdana }
  H2 { font: 8pt/12pt verdana }
  A:link { color: red }
  A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

<h1>The page cannot be found</h1>
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
<hr>
<p>Please try the following:</p>
<ul>
<li>Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.</li>
<li>If you reached this page by clicking a link, contact
 the Web site administrator to ve searched every file.

How is this 404 page generated?  How do I edit it?

Thank-you for any help,
SK

 
New Post
9/24/2007 4:08 PM
 

If you want to create a custom 404 page, I remember having seen a third party module named "404 Redirecter" (or so) on www.snowcovered.com. Perhaps it's useful for you.

 
New Post
9/24/2007 6:10 PM
 

Thanks.

It's called "DNN 404 Smart Redirector Module."

It does quite a bit of stuff, but it seems like a lot of work to learn, install, and program this $25 module when all I really want to do is remove 2 embedded style lines from the default 404 page.

I'm happy with the default 404 page, except for its embedded styles.

Thanks anyway, but does anyone know how to edit the default 404 page?

SK

 
New Post
9/26/2007 2:49 PM
 

Generally the 404 page is set in the webserver settings. As far as I know you cannot set a custom 404 page from within a standard DNN installation.

If you have access to the IIS on your server, you can set the 404 page in the site properties (in the "user defined errors" tab). If not, ask the support of your hosting company.

 
New Post
9/26/2007 4:31 PM
 

Thanks.

I seem to have solved my problem.  I cleaned-up some of my code, and made sure it was compliant with published standards.

I don't know which modification fixed the problem, but if I had to guess, I would say it's this:

I originally linked my skin.css file in my ascx file. This is not necessary, and the <link> tag doesn't end up in the page <head> tag that way anyway.  So it probably screwed-up some things.

But now I'm a good little coding boy, so things are working in all browsers I've tested.

SK

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Skin CSS Style Overwritten by HTTP Error 404 Page.Skin CSS Style Overwritten by HTTP Error 404 Page.


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out