i am using URL rewriting in my asp.net application using regx
virtual URL is
/ProductDatabaseCMS/(?\\w*)/Product/(?\\w*)\\
If you use a relative URI to reference the external stylesheet, you have to consider this: Relative URIs are always resolved from a base URI which is the URI of the current resource if not declared otherwise.
So if you request /foo/bar
and there is a relative URI reference css/baz.css
in the HTML document, it would be resolved to /foo/css/baz.css
as /foo/bar
is the base URI.
To solve this problem you have two options:
/App_Themes/Styles/Style_Sheet.css
), orBASE
HTML element (e.g. <base href="/">
) so that every relative URI is resolved from that new base URI.Use a "root-relative path" for the CSS href. You start the href with "/", that's all.
Try: /App_Themes/Styles/Style_Sheet.css