CSS Issues

Topics: Developer Forum, Project Management Forum, User Forum
Dec 6, 2007 at 10:31 AM

we are facing the stange problem in ISAPI Rewrite rule, I wrote the rule,although the redirection work fine but some CSS issue comes on redirected page.

If I hit page with actual URL, there is no CSS issues over there.

What i observe that if page is redirected, it was not able to fetch the actual path of CSS... hence problem occurs..

any idea about the same..??
Jan 8, 2008 at 12:50 PM
you need to have a rewrite rule to handle the CSS request.

The CSS page that is mentioned in the page, is probably a relative URL.
Sounds like what is happening is, you've changed the URL for the page, but the full URL for the CSS that is embedded in the page, is not also redirected.

page URL:

rewritten to :

relative URI For embedded CSS page:

"original" full URI For CSS page

rewritten CSS (URI gets a 404)

in other words, you need a rewrite rule to handle that last URI and redirect to the former.
eg, rewrite

to point to

good luck!