[apache] Fix rewrite rule conditions for localhost

Add `localhost` and `127.0.0.1` exceptions to the rewrite rule condi-
tions that prepend `www.` to URLs, as the current rules prevent users
from being able to test locally.

Closes h5bp/server-configs#152.