Many developers compare routing to URL rewriting since both look similar and can be used to make SEO friendly URLs. But both the approaches are very much different. The main difference between routing and url rewriting is given below:
1 URL rewriting is focused on mapping one URL (new url) to another URL (old url) while routing is focused on mapping a URL to a resource.
2 URL rewriting rewrites your old url to new one while routing never rewrite your old url to new one but it map to the original route.
Good explanation
ReplyDelete