About
url rewrite is the rewrite of the URL based on condition (generally via a regular-expression parser) to reroute requested URLs on the fly.
The URL manipulations/matching can depend on various tests of:
- server variables,
- environment variables,
- HTTP headers,
- time stamps,
- and even external database lookups.
Articles Related
Example
- Canonical URL rewriting
# URL in the browser
http://example.com/article/article_id
# URL after rewrite
http://example.com/a/index.php?id=article_id