Apache Traffic Redirection Jed Reynolds
Frog and Toad Frog.com buys Toad.net Homepage Document directory Filenames Secure Login
Redirect Homepage Welcome Toad Users Frog.com/toad.htm
Redirect Homepage Mod Rewrite RewriteCond HTTP_HOST ^(.*)\.toad\.net$ RewriteRule ^/$ < uri < header
Redirect all pages Mod Rewrite or Mod Alias Notice the Slash RewriteCond HTTP_HOST ^(.*)\.toad\.net$ RewriteRule ^/(.+)$ < uri < header
Document Directory Toad.net/userman/index.htm Frog.com/userman/index.htm Frog.com/support/toad/index.htm
Document Directory mod_alias from RedirectMatch permanent ^/userman/(.*)
Filenames Frog.com uses.php Toad.com uses.pl
File Names mod_alias Alias /userman < uri /support/toad < disk AliasMatch /userman/(*)\.pl) /support/toad/$1.php
Secure Login Enforce HTTPS on the subdomain
Secure Login Mod Rewrite directory Mod Rewrite, Rewrite Condition RewriteRule ^/cgi-bin/login.*$ [R=301][L] RewriteCond %{HOST_NAME} ^dash\.frog\.com$ RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$