Chapter 22. Dynamic URI Resolution with mod_rewrite

This hour introduces a unique Apache module: mod_rewrite. mod_rewrite provides the Apache administrator with a variety of tools for content delivery and redirection needs that in other circumstances would require a dedicated module, a CGI, or some other additional application code. In this hour, you will learn

  • What mod_rewrite is

  • How to use mod_rewrite's directives to transform requests using regular expressions

  • When to use mod_rewrite instead of mod_alias

Basic Redirects and Aliases Review

Although most modern Web servers have at least some facility for extending the server's capabilities—either through an application programming interface (API) such as Apache's module API or at a minimum with common ...

Get Sams Teach Yourself Apache 2 in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.