Forum Moderators: phranque
RewriteEngine On directive multiple times in every file, it's automatic to state that it's only needed once. %{SERVER_PORT} ^80$ for %{SERVER_PORT} !^443$ just in case someone comes to your http site on port 8080 or something. ^(.*) can be simplified to .* here. [edited by: g1smd at 9:59 pm (utc) on Jun 13, 2012]
Escape the literal periods in the RegEx patterns.
removing the "RewriteEngine on" from the 443 Virtual host section stopped the SSL rewrites so I had to put it back in.