Forum Moderators: open

Message Too Old, No Replies

Displaying style sheet from ASP server transfer

Help me Obi Juan

         

dataguy

7:08 pm on Feb 13, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a very obscure question but I've spent too much time on this problem to think I can solve it myself.

I'm working on a CMS which runs on IIS 7 and classic ASP. I do URL rewriting by parsing the query string from the custom 404 page. This works great for hundreds of thousands of rewritten URL's, but when I try to rewrite the CSS url, the style sheet is never recognized.

Each web page shows the style sheet as:
<link href="css/style.css" rel="stylesheet" type="text/css" />

The custom 404 page detects what the user is looking for and does a server transfer to 'css/23/style.css' (adding the site specific style sheet, this is a multi-site CMS.).

This works fine when I type the URL of the style sheet directly into the browser, but the style sheet isn't used when viewing a normal page.

Because browsers to show an error message when a css isn't found, I have no way of seeing what is going on.

Please help! I'm going crazy trying to figure this out.

kaled

1:33 am on Feb 14, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm half asleep and not sure I've grasped this, but I'm thinking that maybe the css file is being delivered with the wrong content-type or the wrong response code in the http header - that may cause browsers to ignore the file whilst typing in the address bar works.

You may be able to test this theory by using an http header checker on the css file. Of course, even if I'm right, I'm not sure how to fix this.

Kaled.