
Install and configure Apache mod_rewrite, set up virtual hosts, and master rewrite rules, conditions, variables, maps, logging, flags, content generation, load balancing, and access control.
Learn how the Apache mod_rewrite module rewrites a URL to a new location, preserving existing links during site relocation. Install Apache, enable mod_rewrite, and test to verify rewrites.
Learn when to use mod_rewrite for complex uri rewrites and conditional logic, and when alias enables simple redirects or dynamic virtual hosts.
Learn how the regular expression engine matches patterns using anchors, metacharacters, and quantifiers; test patterns with a regex tester, escape literals, and make parts like http(s) and index.html optional.
Configure Apache virtual hosts for site and boat sites, edit /etc/hosts to map two hostnames, and prepare mod_rewrite rules with document roots and allow override, then test locally.
Explore Apache mod_rewrite variables and how they are assigned at request time, using host, query string, and request method to craft rewrite rules and redirects.
Explore how to use rewrite conditions in Apache mod_rewrite to enhance security by blacklisting bad user agents, preventing file injection, and returning a 403 forbidden when rules match.
Configure rewrite maps with a txt mapping in Apache mod_rewrite to route model names to product pages via a virtual host, with a fallback to the product list.
Create and use a random rewrite map (rnd) in Apache mod_rewrite, defining an rnd map file to map models to cruiser, bouncer, or roller, and apply it via rewrite rules.
Explains external program rewrite maps (prg) using a perl script to transform input and route requests, and demonstrates internal rewrite map functions like to lower and to upper.
Explore a comprehensive guide to mod_rewrite rule flags, including escape, redirect, last rule, chain, cookies, environment variables, case handling, query string options, and mime types.
Explore advanced mod_rewrite logging, configure error log locations and per-virtual-host or per-directory log levels, from alert to trace levels, and understand restart implications.
Explore Apache mod_rewrite security techniques, including custom 404 error handling, user-agent filtering for bots, forbidden responses, and protection against query string injections and directory traversal.
Master advanced mod_rewrite techniques to generate content, perform load redirection, and enforce access control with conditions, time-based rules, and rewrite maps.
Wraps up the Apache mod_rewrite course, reviewing installation, virtual hosts, testing, and usage, then covers regular expressions, condition directives, rewrite variables, and advanced topics like logging and access control rewrites.
In this Learning Apache mod_rewrite training course, expert author Daryl Wood teaches you about the installation, configuration, and practical use cases for a powerful Apache module. This course is designed for users that already have experience with web development or system administration.
You will start by learning how to adjust configuration, then jump into learning basic regular expressions. From there, Daryl will teach you about rewrite directives, such as RewriteRule directive, RewriteBase and options, and RewriteRule flags. Finally, this video tutorial will cover advanced rewriting solutions, such as logging, security, and content-load-access.
Once you have completed this computer based training course, you will be fully capable of using Apache mod_rewrite for your modifying and rewriting needs. Working files are included, allowing you to follow along with the author throughout the lessons.