I read a lot about rewriting URLs, but I still don't get it.
I understand that a url like
http:
can be replaced by more friendly, for example
http://www.example.com/Blog/2006/12/19/
and the server code may remain unchanged because there is a filter that converts the new URL and sends it to the old one, but does it also replace the URLs in the response HTML?
If the server code remains unchanged, then it is possible that in my returned HTML code I have links like:
http://www.example.com/Blog/Posts.php?Year=2006&Month=12&Day=20 http://www.example.com/Blog/Posts.php?Year=2006&Month=12&Day=21 http://www.example.com/Blog/Posts.php?Year=2006&Month=12&Day=22
This defeats the goal of having good URLs if my page still has old ones.
Does the URL (with filter or something else) rewrite this content in HTML?
To put in another way ... are the rewrite rules applied for the incoming request, as well as for the content of the HTML response?
Thanks!
source share