I have a problem that I can see the reason for but cannot figure out a
solution.
I am using a simple URL rewriter to map www.me.com/1/2/3/4/product.aspx to
www.me.com/product?filter=1/2/3/4 to make my site Google-friendly. The site
dynamically adopts the correct master pages and themes according to a host
header-based query in SQL 2005 and via a custom sqlsitemapdatasource
automagically configures a breadcrumb and menus, all of which work
wonderfully.
However the theme's stylesheet is always declared in the page as a relative
reference (e.g. "Themes/me.com/stylesheet.css") which means that for the
rewritten rule the browser client will be looking for
"www.me.com/1/2/3/4/Themes/me.com/stylesheet.css". Does anybody have a way
of specifying that this be output as a url relative to root
("~/blah/blah/...") as I don't want to have to do a replace on render because
of the hit per page that would incur.
Ta!!