The mod_rewrite is a very powerful module for manipulating the server side path ways and conversions with Apache. To further my studies on this feature, I have dedicated this page to everything about it.
Example 1: Rewriting with some matches
My first example is composed of a very basic transformation from one value to another.
Example 2: Rewriting with some matches except for visits from a specific IP Address
Example 3: Rewriting with query parameters
Sometimes we have a query parameter in the url and need to have it targeted. The following conditions check first for a specific url and then a query parameter, then rewrite the url to a new value: