The technique adds a layer of abstraction between the files used to generate a web page and the URL that is presented to the outside world.
Web sites with dynamic content can use URLs that generate pages from the server using query string parameters.
These are often rewritten to resemble URLs for static pages on a site with a subdirectory hierarchy.
For example, it may be difficult to determine the date from the following format: In this case, the original query string was more useful, since the query variables indicated month and day: Many web frameworks include URL rewriting, either directly or through extension modules.
From a software development perspective, URL rewriting can aid in code modularization and control flow,[12] making it a useful feature of modern web frameworks.