-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 18 May 2015, Joe Hourcle said: > > If we assume that the FQDN only contains numbers, letters, dashes and > periods (no underscores or other characters), you might check how the first > one compares to: > > RewriteRule ^([a-zA-Z0-9\.]+)-([a-zA-Z0-9\.\-]*)ezproxy.switchinc.org/(.*) > $1.$2ezproxy.switchinc.org/$3 [N] A RewriteRule directive won't actually match the hostname at all; it only operates on the URI, so the domain part of the match has to be moved up into a RewriteCond above and capture into %1,%2 instead of $1,$2. That would turn Joe's rule into something like: RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9\.]+)-([a-zA-Z0-9\.\-]*)ezproxy\.switchinc.\org$ RewriteRule (.*) http://%1.%2ezproxy.switchnic.org/$3 [N] Likewise, untested. The hyphen replace is problematic for mod_rewrite. - -- ++++++++++++++++++++ Michael Berkowski University of Minnesota Libraries [log in to unmask] 612.626.6137 PGP Public Key: http://z.umn.edu/mjbpubkey ++++++++++++++++++++ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlVZ7QIACgkQ01KJk46VC2b/SgCeNoJEszOJiWD7mmT6C7GuOyRS W9MAn1WYqEFdlmB59fSZm7iPP0YV/rje =HGLK -----END PGP SIGNATURE-----