URL - URL Rewrite

> (World Wide) Web - (W3|WWW) > Web - Resource

1 - 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.
Advertising

3 - 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
web/resource/url_rewrite.txt · Last modified: 2019/05/28 20:18 by gerardnico