Jonathan Polansky

A pretty good webpage.

Tag archive for ‘mod_rewrite’

Using mod_rewrite to redirect URIs with GET query parameter strings

I recently came across a situation where I had to redirect URI paths and GET query parameter string combinations to a single URI.  The URI path could be the same between requests and the GET query strings could be the same between requests but the combination of the two was guaranteed to be unique. My [...]

Tying multiple Apache RewriteRules to a set of RewriteCond(s)

Recently I had a set of mod_rewrite RewriteRules that I wanted to only be evaluated if a set of RewriteConds were matched. This turned out to be a much more difficult task than I had anticipated. Combining RewriteConds is no problem; this is supported with the default ‘AND’ behavior or the ‘OR’ CondPattern flag (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond). [...]