473,386 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IIS 6.0 404 Redirect to pagenotfound.aspx themes missing

OK here is the issue. I have IIS 6.0 set up to redirect missing pages
to pagenotfound.aspx. I have asp.net set up in the web.config to
redirect missing pages to pagenotfound.aspx. I am using master pages
and themes. I can not make any changes to the paths of the css files
as those are in the head control on the page that is generated from
the mystical land that is Microsoft.I test that these are working by
going to pages that do not exist.

Say I have a directory that is

www.mysite.com/test/forms/test.htm.

This test page exists so everything is happy. Now I put in

www.mysite.com/test/forms/test2.htm

this page does not exists so it redirects to the pagenotfound.aspx.
And the world is a wonderful place and things are great.....

Now I try the same url but add a directory that doesn't exist.

www.mysite.com/test/forms/a/test.htm.

Now here is the problem. The site still redirects me to the
pagenotfound.aspx but the page no longer renders the css in the file.
What the real kicker here is that the page that displays and works has
the exact same source as a page that displays and does not work. But
the two pages are different. I can show you examples of this if
someone is willing to help tackle this one.
Jan 29 '08 #1
0 1196

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Marty U. | last post by:
I have a Session variable I need to check the value of. If it is value a then redirect to some page. I need to implement this in a user control that is on all the relevent pages. I placed the if...
7
by: Pat Carden | last post by:
I'm trying to provide a better user experience by redirecting my users to a "Page Not Found" page, using a Custom Errors directive in Web.Config. The problem is I need to return a 404 error code...
5
by: Alan Silver | last post by:
Hello, I have a page that is supposed to do some checking, and if OK, set a session variable before redirecting to another page. The following code is a simplified version, I have hard-coded the...
1
by: Seefor | last post by:
I may be missing something, but why aren't master pages part of themes? i.e. why don't they go in the App_Themes or global Themes directory, and be referenced just by name (not full path) in the...
4
by: Sean | last post by:
My experience now working with master pages on and off for 6 months is that they can be very dangerous when working with themes. One example in particular is the changes I made to my banner menu...
0
by: Les Caudle | last post by:
I can set up CustomErrors to redirect a missing aspx page to Register.aspx like: <customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx"> <error statusCode="404"...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
3
by: Tamer Ibrahim | last post by:
Hi, I want to mimic the "Page Options" existing on the www.msn.com especially the change color feature on my site. Any helpful resources describe the idea of that will be most appreciated. Thank...
5
by: rote | last post by:
I'm using ASP.NET 2.0 and i have copied and pasted the code below to my Global.asax file but it desn't trap the error I want to trap the 401 access denied void Application_Error(object sender,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.