Rewriting URL's in ASP.net (Simple question)
Posted
by
Tom Gullen
on Stack Overflow
See other posts from Stack Overflow
or by Tom Gullen
Published on 2011-03-06T00:05:28Z
Indexed on
2011/03/06
0:11 UTC
Read the original article
Hit count: 140
On my master page I have:
<link rel="stylesheet" href="css/default.css" />
I also have a page "blog.aspx" in the root directory.
I have the rule:
<rewrite url="~/blog/blog.aspx" to="~/blog.aspx" />
My questions are:
- Am I meant to make all my links in my site point to blog/blog.aspx now instead of just blog.aspx where it is physically located
- How is best to cope with the paths of the stylesheets etc now being messed up because they are one dir up?
© Stack Overflow or respective owner